Linked lists
Nodes joined by pointers: singly, doubly and circular lists and the classic list techniques.
- Singly linked lists: traverse, insert, delete A singly linked list is a chain of nodes, each pointing to the next. Walk the chain with a cursor and rewire two arrows to insert or delete.
- Linked list techniques: reverse, middle, merge, detect a cycle Four classic list moves: reverse by rewiring pointers, find the middle and detect cycles with slow and fast runners, and merge two sorted…