bucket_sort
Sorts an array of numbers by distributing values into configurable buckets, sorting each bucket, and concatenating the results into ordered output.
Instructions
Sort numbers using the bucket sort algorithm. Distributes elements into buckets, sorts each, then concatenates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | Array of numbers to sort | |
| bucket_count | No | Number of buckets (default: sqrt of array length) |