Subtopic 5.3
Queue with a Linked List
5lessons25 min0done
A queue built on a linked list keeps two pointers: front points to the first node and rear to the last. Adding happens at the rear and removing at the front; both take O(1) and the queue never fills up.
The operations from the array lessons are repeated in the same order with the same names. The last lesson compares the three versions side by side: linear array, circular array and linked list.