in DS edited by
1,291 views
1 vote
1 vote

What operation is supported in constant time by the doubly linked list, but not by the singly linked list ?

  1. Advance

  2. Backup

  3. First

  4. Retrieve

in DS edited by
1.3k views

1 Answer

0 votes
0 votes

In singly linked list we only goes to forward node  we can't goes back to  backward node because we only have forward pointer which point next node of linked list  but if we want we have to start from head(first node) it may take O(N) time

but in case of doubly linked list we can go to backward node by backward pointer it take O(1).

answer B

edited by

Related questions