CURRENCY SHORT
CodeChefOpen on judge ↗
Raju has many currency notes in his wallet . There are notes of denominations 10,20,50,100,200,500 and 2000 rupees in his wallet right now,but the notes are all messed up . He wants to organize his wallet so that all the notes of each denomination are together . The notes don't necessarily need to be in sorted order. In each step , Raju can take a note and insert this note at any place among the
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