← All problemsSign in

Changing the Hostel Room

You are a hosteller and you stay in Block A, Chandrasen Hostel, Plot No 19, NIET Main Campus, Gr. Noida. Now the warden sir told you change your room from Block A to Block C. You agreed to him and asked two of your friends to help you out. They came to your old room, at that time you are left with two kind of items, one type of item weights 1 Kg and other type of item weights 2 Kg. As you c

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start