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 pricingOrder each column by row first, and by value when two nodes share a row.
What this asks
Order each column by row first, then by value when two nodes share a row.
Carry (row, column, value) for every node, sort inside each column by row and then by value, and keep the column 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