This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingGiven a task such as printing a tree, freeing it, or listing nodes at a depth, pick the traversal that fits.
What this asks
Given a task such as printing a tree, freeing it, or listing nodes at a depth, pick the traversal that fits.
Ask where the node's own work happens: before the children means preorder, between means inorder, after means postorder, and anything measured in levels means level order.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing