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 pricingNest the most envelopes without rotating them; both dimensions must be strictly smaller.
What this asks
Nest the most envelopes without rotating them; both dimensions must be strictly smaller.
Sort by width and height, then compare each envelope with the earlier ones using dynamic programming.
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