Level 3 · Structures
Trees
About 35 steps, from the first idea to a mastery test.
Stage 0Nodes and depth4 stepsFree
- 1Count the nodes8 min
- 2Maximum depth8 min
- 3Search a binary tree8 min
- 4Same tree9 min
Stage 1Traversals4 stepsFree
- 1Preorder traversal8 min
- 2Inorder traversal8 min
- 3Postorder traversal8 min
- 4Iterative inorder traversal12 min
Stage 2Level order4 stepsFree
- 1Read the tree row by row14 min
- 2Zigzag through the rows12 min
- 3The biggest value in each row12 min
- 4Is the tree filled without gaps14 min
Stage 3Paths4 stepsFree
- 1Walk down to a leaf with a target12 min
- 2List every route from the top14 min
- 3Paths that start anywhere20 min
- 4The best path anywhere22 min
Stage 4Building and comparing4 stepsFree
Stage 5Ancestors4 stepsFree
- 1Where two branches meet18 min
- 2Use the order to find the meeting point12 min
- 3Steps between two nodes14 min
- 4The ring around a node20 min
Stage 6Views and widths4 stepsFree
- 1What you see from the right12 min
- 2Column by column14 min
- 3The widest row, gaps included20 min
- 4Looking from above14 min
Stage 7Serialize4 stepsFree
- 1Write a tree down as text12 min
- 2Read the text back into a tree14 min
- 3Spot the twin subtrees20 min
- 4How many different trees16 min
Stage 8Mastery3 stepsFree
- 1Watching every branch22 min
- 2Robbing the tree20 min
- 3The best search subtree24 min