Level 3 · Structures
Binary search trees
About 15 steps, from the first idea to a mastery test.
Stage 0Search and insert4 stepsFree
- 1Search a BST8 min
- 2Minimum value in BST7 min
- 3Insert into a BST8 min
- 4Closest value in BST9 min
Stage 1Ordered walks4 stepsFree
- 1Two values that add up14 min
- 2The next value up12 min
- 3Cut a tree down to a range14 min
- 4Add everything that is bigger14 min
Stage 2Validate and repair4 stepsFree
- 1Is it really a search tree14 min
- 2Two values got swapped20 min
- 3Remove a node and keep the order20 min
- 4Grow a tree one value at a time14 min
Stage 3Mastery3 stepsFree
- 1The k nearest values20 min
- 2Straighten the tree into a line18 min
- 3How many are smaller to the right26 min