The Lost Number
CodeChefOpen on judge ↗
The legendary Sherlock Holmes needs your help in solving a case. He has been trying to solve the case of The Lost Number for a long time and using his exceptional skills, has been able to discover all N parts of the number. He also knows that the Lost Number is the arrangement of these N parts, that results in the numerically maximum number. Since he is very busy with other cases, he needs you to
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