CSD201_-_SP_2024_-_RE_1744.webp
L

CSD201_-_SP_2024_-_RE_1744.webp

(Choose 1 answer)
Select the most correct java code snippet that deletes the last node.
Suppose we are considering a singly linked list which has at least 2 nodes.
A. Node f = head;
while(f.next != tail) f = f.next;f.next = null;
B. Node f = head;while(f.next != tail) f = f.next;f.next = null;
tail = f;
C. Node f = head;while(f != tail) f = f.next;f.next = null;tail = f;
D. Node f = head;while(f.next != tail) f = f.next;tail = f;
37/50-CAP


Q: 39

Thông tin

Category
CSD201
Thêm bởi
Lan Ngọc
Ngày thêm
Lượt xem
2,386
Lượt bình luận
16
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_SP_2024_-_RE_1744.webp
File size
188.8 KB
Dimensions
1920px x 892px

Share this media

Back
Bên trên Bottom