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 pricingWalk arrays and matrices on purpose: reverse from both ends, rotate by three reversals, compact zeroes with a write frontier, and spiral a grid with four moving boundaries.
What this asks
Practice four in-place walks on one array: reverse from both ends, rotate by three reversals, compact zeroes, and spiral a grid.
Pick a mode; each one states the invariant that makes its overwrites safe.
Try the matching visualizer modeThe 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