Sort Lagani Hai (Apply Sort)
CodeChefOpen on judge ↗
Omprakash Mishra created 3 Machines to help him with generation of a random number. $M1$ generates a random number. $M2$ generates another random number. $M3$ then concatenates the numbers generated by the above machines in the order $M1M2$ to form the final random number. He creates the machines in such a way that numbers generated by $M1$ have either the same number of digits as $M2$
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