Hints for SRM 297, D2, 250-pointer (PackingParts)

James S. Plank

Sun Feb 16 14:03:09 EST 2014
Problem Statement.
The vectors are already sorted, so you should have two indices: i for parts and j for boxes. Start them both at zero. Then you simply run through their steps: