Skip to main content

counting_sort_u32

Function counting_sort_u32 

Source
pub fn counting_sort_u32(data: &[u32], max_val: u32) -> Vec<u32>
Expand description

Integer counting sort for values in [0, max_val].

O(n + max_val) time and space. Returns sorted Vec.

ยงPanics

Panics if any value > max_val.