May 2017
Intermediate to advanced
310 pages
8h 5m
English
Unlike the singly linked list, where we needed to keep track of the previously encountered node anytime we traversed the whole length of the list, the doubly linked list avoids that whole step. This is made possible by the use of the previous pointer.
The algorithm for removing nodes from a doubly linked list caters for basically four scenarios before deletion of a node is completed. These are:
The node to be removed is identified when its data instance variable matches the data that is passed ...