CSD201_-_FA_2024_-_RE_3087.webp
Hữu Nghĩa

CSD201_-_FA_2024_-_RE_3087.webp

(Choose 1 answer)
Select the statement that is most correct.
Suppose we are considering a singly linked list and pis some node in the list which has both predecessor and successor nodes. What does the java code snippet below do?
Node f = head;
while(f.next != p) f = f.next;
f.next = p.next;
A. It deletes the node p.
B. It deletes the node before p.
C. It deletes the node after p.
D. It does not make any change on the list.


Thông tin

Category
CSD201
Thêm bởi
Hữu Nghĩa
Ngày thêm
Lượt xem
7,627
Lượt bình luận
20
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_FA_2024_-_RE_3087.webp
File size
199.5 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom