Subtopic 3.2
Doubly Linked List
6lessons33 min0done on this device
In a doubly linked list each node holds two addresses: next for the following node and prev for the one before. The list can be walked in both directions, and deleting a node you already hold needs no search for its predecessor.
The price is that every insert and delete must update two links together. Most lessons in this subtopic show which link changes, and in which order.