Sort a list of floats in [0,1) using bucket sort with insertion sort inside buckets.
Constraints
Example
>>> bucket_sort([0.42, 0.32, 0.33]) [0.32, 0.33, 0.42] >>> bucket_sort([0.1, 0.05, 0.3, 0.2]) [0.05, 0.1, 0.2, 0.3] >>> bucket_sort([]) []
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints