Sort the following list using Radix sort algorithm. 329, 457, 839, 436, 720, 355, 657
Sort the following list using Radix sort algorithm.
329, 457, 839, 436, 720, 355, 657
What is the output of the algorithm after 2nd pass?
Show answerHide answer
Correct answer: (B) 720, 329, 436, 839, 355, 457, 657
Explanation
Pass 1 (units): 720, 355, 436, 457, 657, 329, 839. Pass 2 (tens, stable): 720, 329, 436, 839, 355, 457, 657.