linked-list
Create a Node class that has properties for the value stored in the Node, and a pointer to the next Node.
Whiteboard Process
linked-list-insertions image link
Approach & Efficiency
linked-list-insertions
add functions to the linked list,
- append, which adds a new node with the given value to the end of the list
- insert before, which adds a new node with the given new value immediately before the first node that has the value specified
- insert after, which adds a new node with the given new value immediately after the first node that has the value specified
Whiteboard Process
linked-list-insertions image link
Approach & Efficiency