Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Given a fixed size box, is there a way to quickly query which packages (i.e., count and sizes) should end up in that box size?
Do we have to order the boxes a certain way to allow us to answer the query quickly?