Your goal: use the order of a search tree to answer in one walk, say the approach and its cost before you code, and test the awkward trees yourself.
How this works (about 30 minutes)
- Nate puts one question in the shared editor. Read it, ask what you need, then think out loud.
- Say your approach and its cost before you code. Pick Python, Java or C++ in the editor.
- Run the public tests, then tell Nate which input you think would break your code.
- A follow-up that changes the problem, built from your own code.
- No hints you did not ask for and no scores during the call. Your report comes after.
What scores well
- Using the sorted order so every step throws away a whole side
- Remembering the best answer seen while walking down
- Naming the empty tree, the budget below every price and a long one-sided chain before Nate asks
- Time in terms of the height of the tree, and when that is large
Tips
- Take Coding Coach · Trees and Tries first.
- Silence reads as stuck. Say what you are trying, even when it is a guess.