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 small tree, decide whether the left smaller, right bigger rule holds everywhere.
What this asks
Decide whether the left smaller, right bigger rule holds on a given tree.
Check each node against an allowed range, not just against its parent, so distant violations are caught.
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