Fill The Bags
CodeChefOpen on judge ↗
Problem description Delta is the Coding Club of NIT Trichy. Recently they planned to go for a trip. Two girls Aarti and Bhavya got stuck while packing. Aarti had a bag of weight holding capacity w1 and bhavya had a bag of weight holding capacity of w2 .They had n1 objects with weight 1 unit each and n2 objects with weight 2 units each. Your task is simple. Help them find the maximum weight of ob
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