STRANGE OPERATIONS
CodeChefOpen on judge ↗
There are two kind of operation that you have to perform operations. - In first operation, swap the first digit and last digit of the number for eg:- 43 will become 34 and 432 will become 234 . - In second operation sum all the digits of the number for eg :- 43 will become 7 and 432 will become 9. In a more generic sense . if A = 43 then after operation (1) value of 'A' would be A = 34 and if A
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