DSA, Database System & Operating System — Data Structure, Lists, Linked Lists and Trees, NEC licence examination syllabus (Nepal Engineering Council).
The extra "previous" pointer opens up patterns a singly linked list simply can't do.
Because each node in a doubly linked list can reach both its neighbours, you can delete a node in O(1) time GIVEN just a pointer to it (no need to separately track "the node before it," unlike singly linked lists).
Browser historyForward/back navigation needs traversal in BOTH directions.
Undo/redo systemsMove backward (undo) or forward (redo) through a sequence of actions.
Create a free account to tick topics off, take notes as you read, watch the video lessons and get a day-by-day study plan built around your exam date.
Loading…