CSD201_-_SU_2023_-_Block_5_-_RE_759.webp
Vân Anh1

CSD201_-_SU_2023_-_Block_5_-_RE_759.webp

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


Exit 23

Thông tin

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

Image metadata

Filename
CSD201_-_SU_2023_-_Block_5_-_RE_759.webp
File size
54.3 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom