Opening the reading…
Opening the reading…
CODE DRILL 2 · RUN ONLY
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Implement bucket sort for the running array [0.42, 0.32, 0.73, 0.25, 0.39, 0.47] using six list buckets. Distribute each value with (int)(6 * x), sort every bucket, concatenate buckets 0 through 5, and print the final array.
OUTPUT
Sample[0.25, 0.32, 0.39, 0.42, 0.47, 0.73]
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.