DSA SheetLesson · no judge

CODE DRILL 2 · RUN ONLY

Write it, run it, read the output

This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.

TASK

Complete the stable LSD radix sort for [170, 45, 75, 90, 802, 24, 2, 66]. Print the array after the ones, tens, and hundreds passes, then print the final sorted array.

Java
Loading editor…

OUTPUT

Sample
[170, 90, 802, 2, 24, 45, 75, 66]
[802, 2, 24, 45, 66, 170, 75, 90]
[2, 24, 45, 66, 75, 90, 170, 802]
[2, 24, 45, 66, 75, 90, 170, 802]

What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.