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 pricingCarry everyone in boats that take two people, using as few boats as the weight limit allows.
What this asks
Carry everyone in boats that hold two people, using as few boats as the weight limit allows.
Sort by weight; pair the heaviest with the lightest that fits and move both pointers inward.
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