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 pricingStop an in-order walk at the kth visit, or steer by counting nodes on the left.
What this asks
Return the kth smallest key.
Stop an in-order walk at the kth visit, or steer by left-subtree counts when sizes are stored.
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