File size: 451 Bytes
bff4ec7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Stable Counting Sort
## Description
Sort integers from the fixed range $[0,99]$ in nondecreasing order using stable counting sort.
## Input
The function receives an integer array `a` and its length $n$.
## Output
The same array contains the input values in nondecreasing order.
## Constraints
- $0 \le n \le 100$.
- $0 \le a_i < 100$ for every element.
## Source
Classical counting-sort problem reconstructed from the verified C artifact.
|