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 doubly linked list and p is some node in the list which has successor node.
What does the java code snippet below do?
Node p1,p2; p1 = p.next;
p2 = p1.next;
p.next = p2;
if(p2!=null) p2.prev=p;
A. It does not make any change on the list.
B. It deletes the node before p.
C. It deletes the node p.
D. It deletes the node after p.


4
  • Like
Reactions: phuctan0410

Thông tin

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

Image metadata

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

Share this media

Back
Bên trên Bottom