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 pricingGroup the level-order walk so every row comes out separately.
What this asks
Group the level-order walk so every row comes out separately.
Snapshot the queue's size before each round; that count is exactly the number of nodes in the current row.
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