LinkedListwTail.
LinkedListNode* tail - A pointer to the last node in the list.
LinkedListwTail as a subclass of LinkedList.
PushBack() becomes much more efficient.
PushBack().
size >= 0.
size == 0, then
head == NULL.
tail == NULL.
size == 1, then head == tail.
size >= 1, then
head != NULL.
tail != NULL.
next pointer in node size is NULL.
size >= 2, then
i from 1 to size - 1,
the next pointer in node i is not NULL.
next pointer in node size - 1 equals
tail.

This page was last modified on Feb 28, 2001
URL: http://people.hsc.edu/faculty-staff/robbk/Coms262/Lectures/LinkedListwTail.html