CSD201_-_1_-_FA_2023_-_FE_1030.webp
H

CSD201_-_1_-_FA_2023_-_FE_1030.webp

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


Exit 24

Thông tin

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

Image metadata

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

Share this media

Back
Bên trên Bottom