Review of operations on a linked list
- Operations on a
linked list:
- Insert a
new item into
the linked list
(at any position):
- Remove an
item from
the linked list
(at any position)
- Retrieve an
item from
the linked list
(at any position)
|
- The principle of
each type of
algorithm is
always the same
Therefore:
- Do not
memorize
- Understand what
needs to be
done
- Understand
the list manipulation
operations,
such as:
current = current.next;
current.next = new Node( ... );
|
|
|