← All problemsSign in

Mr B and sorting algorithm

Ms. A has recently taught to Mr. B about sorting. Now, she wants to check whether he understood the concept or not. So, she gave him the following algorithm and asked to implement it : Assumptions: We consider the rightmost digit of each number to be at index 1, second last at index 2 and so on till the leftmost digit of the number. Meaning of i th chunk: This chunk consists of digits from posi

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