CSD201_-_SU_2023_-_Block_5_-_FE_736.webp
Kokushibo91

CSD201_-_SU_2023_-_Block_5_-_FE_736.webp

(Choose 1 answer)
list (i.e. p.info=9):
Suppose a doubly linked list of integers is given below and p is a reference to the node with value 9 in the
(head) 7 11 6 4 3 9 8 2 (tail)
What does the list look like after the following java code snippet is run?
A. 7 5 11 6 4 3 9 8 2
int x = 5;
Node p1, p2;
B. 7 11 6 4 3 5 9 8 2
p1 = new Node(x);p2 = p.next;
C. 7 11 6 4 3 9 8 2 5
p.next = p1; p1.prev = p;
D. 7 11 6 4 3 9 5 8 2
p1.next = p2; p2.prev = p1;
E. 5 7 11 6 4 3 9 8 2
antonis ni

Evit 5
  • Like
Reactions: Hoàng Hùng

Thông tin

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

Image metadata

Filename
CSD201_-_SU_2023_-_Block_5_-_FE_736.webp
File size
54.5 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom