Skip to main content

counting_sort_by_key

Function counting_sort_by_key 

Source
pub fn counting_sort_by_key<T: Clone>(
    data: &[(u32, T)],
    max_key: u32,
) -> Vec<(u32, T)>
Expand description

Counting sort that also carries satellite data (key-value pairs).

Sorts by u32 key, stable.