Level 2 · Core
Linked lists
About 25 steps, from the first idea to a mastery test.
Stage 0Walking nodes4 stepsFree
- 1Count the nodes8 min
- 2Find first occurrence8 min
- 3Value at index8 min
- 4Check if sorted9 min
Stage 1Changing links4 stepsFree
- 1Turn the chain around15 min
- 2Cut a value out of the chain14 min
- 3Slot a new node into place13 min
- 4Swap the neighbours15 min
Stage 2Fast and slow pointers4 stepsFree
- 1Find the middle without counting12 min
- 2Does the chain loop back16 min
- 3Count from the back14 min
- 4Does the list read the same backwards18 min
Stage 3Merging and splitting4 stepsFree
Stage 4Harder rewiring4 stepsFree
- 1Reverse only a section16 min
- 2Reverse in groups of k18 min
- 3Weave the front with the back18 min
- 4Rotate the list14 min
Stage 5Mastery5 stepsFree
- 1No repeats allowed16 min
- 2Sort the chain20 min
- 3Splice one chain into another14 min
- 4Cancel out20 min
- 5Add up between the zeros14 min