← All problemsSign in

Largest Number

Aditi and Aastik are busy preparing brain-teasers for Todo En Uno. They think of many puzzles, but none seem satisfactory. Defeated, they seek the help of their juniors. One of them comes up with an interesting question. For any positive integer, we can change the position of first and last digit of a number by either moving the first digit to the end of the number , or the last digit to the front

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