April 2026
Intermediate
631 pages
16h 20m
English
Singly linked lists allow navigation in only one direction (forward). In contrast, doubly linked lists allow navigation in both forward and backward directions.
Let’s visualize this capability through the structure of a typical doubly linked list, as shown in Figure 11.2.
Figure 11.2 A Typical Doubly Linked List
Unlike a singly linked list, we have explicit information about both the head and tail of the list. Additionally, each node contains two pointers: one to the next node and one to the previous. An important observation from a programming perspective is that each node is pointed to by more than one pointer. ...
Read now
Unlock full access