CSD201_-_1_-_FA_2023_-_FE_1030.webp
H

CSD201_-_1_-_FA_2023_-_FE_1030.webp

(Choose 1 answer)
that deletes the last node.
Suppose we are considering a singly linked list which has at least 2 nodes.Select the most correct java code snippet
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;


Exit 17

Thông tin

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

Image metadata

Filename
CSD201_-_1_-_FA_2023_-_FE_1030.webp
File size
52.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom