Pseudocode for Inserting Nodes
Determine whether the new node will be the first node in the linked list. If so, then there is only one step:
head_insert(head_ptr, entry);
The data to put
in the new node
Previous slide
Next slide
Back to first slide
View graphic version