pub fn counting_sort(data: &mut [u32], max_val: u32)
Counting sort for u32 values bounded by max_val (inclusive).
u32
max_val
Creates a count array of size max_val + 1 and reconstructs sorted data from it. O(n + max_val) time and space.
max_val + 1