Last-minute Packing
CodeChefOpen on judge ↗
Lara is going on her first international trip, and she is so excited! But being the clumsy person that she is, she postpones her packing to the last minute and now she finds it very difficult to pack her bags properly. So she wrote the following code that could optimize her packing problem. But there’s something wrong with it! Help her before it’s too late! All items to be packed have a size(an i
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start