CSD201_-_FE_-_SU_2023_401.webp
C

CSD201_-_FE_-_SU_2023_401.webp

  • Media owner Carla89
  • Ngày thêm
OD
(Choose 1 answer)
Suppose we are considering a singly linked list and p is some node in the list which has both and successor nodes.
Select the most correct java code snippet that deletes the node p.
A. Node f = head;
while(f.next != null) f = f.next;f.next = p.next;
B. Node f = head;
while(f != p) f = f.next;f.next = p.next;
C. Node f = head;
while(f.next != p) f = f.next;
f.next = p.next;
D. Node f = head;while(f != null) f = f.next;
f.next = p.next;
31

Thông tin

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

Image metadata

Filename
CSD201_-_FE_-_SU_2023_401.webp
File size
54.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom