← All problemsSign in

Join the Ribbons

Its the time of the Ojass’15 the technical fest of NIT Jamshedpur. Guys are busy decorating the arenas for various events. They need several colorful ribbons of different sizes for the decoration and for this they want to buy ribbons of a fixed size and then join them to form the ribbons of required sizes. Given sizes of N required ribbons. Help them to buy the longest sized ribbon which they ca

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