counting_sort
Sort integer arrays in O(n+k) time and analyze value frequencies to order data and count occurrences.
Instructions
Sort an array of integers in O(n+k) time using counting sort, with frequency analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Array of integers to sort |