CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp
thanhvan86

CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp

(Choose 1 answer)
Select the statement that is most correct.
Suppose we are considering a doubly 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 p1, p2; p1 = p.prev; // prev is a link to previous node
p2=p.next; p2.prev = p1;
p1.next = p2;
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.
FUO
2: 40

Thông tin

Category
CSD201
Thêm bởi
thanhvan86
Ngày thêm
Lượt xem
1,976
Lượt bình luận
14
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_SP_2024_-_Block_5_-_RE_1957.webp
File size
213.9 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom