The Game of Maths
CodeChefOpen on judge ↗
When Tim was a young child, he absolutely hated maths and always wanted to play games. So, his mother gifted him a game to enhance his mathematical ability. In this game, Tim had a number in which he had to make swap moves between any of the digits to find out the maximum or minimum number that could be created through this action. After some practice, Tim became proficient in this game. To make
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