Which statement is correct? A doubly linked list
-
A
Has at most 2^(h+1) − 1 nodes
-
B
Provides constant-time access to elements by index
-
C
Finds a minimum spanning tree by adding the smallest edges without forming cycles
-
D
Has pointers to both the next and the previous node
Correct answer
Correct answer
D. Has pointers to both the next and the previous node
Explanation
A doubly linked list has pointers to both the next and the previous node.
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ