Question discussion

What is the primary advantage of a doubly linked list over a singly linked list?

359474Medium DSSSB TGT Computer Science 0 replies 0 views
0
What is the primary advantage of a doubly linked list over a singly linked list?
  • AIt has faster insertion and deletion operations.
  • BIt is easier to implement.
  • CIt uses less memory.
  • DIt allows traversal in both directions.
Correct answer: D

Explanation

A doubly linked list allows traversal in both directions because each node has a previous pointer.

Discussion 0

Nobody has replied yet. Start the discussion!