Pseudocode for Inserting Nodes
15
10
7
null
head_ptr
Otherwise (if the new node will not be first):
Start by setting a pointer named previous_ptr to point to the node which is just before the new node's position.
The new node must
be inserted at the
front of this small
linked list.
13
Write one C++ statement which will do the insertion.
previous_ptr
Previous slide
Next slide
Back to first slide
View graphic version