MCPcopy Create free account
hub / github.com/diptangsu/Sorting-Algorithms / counting_sort

Function counting_sort

Rust/CountSort.rs:5–19  ·  view source on GitHub ↗

counting sort for collections of u32 O(n + maxval) in time, where maxval is the biggest value an input can possibly take

(arr: &mut [u32], maxval: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

counting_sort_descendingFunction · 0.70
counting_sort_pre_sortedFunction · 0.70

Calls

no outgoing calls

Tested by 2

counting_sort_descendingFunction · 0.56
counting_sort_pre_sortedFunction · 0.56