MCPcopy Create free account
hub / github.com/EbTech/rust-algorithms / counting_sort

Method counting_sort

src/string_proc.rs:214–235  ·  view source on GitHub ↗

O(n + max_key) stable sort on the items generated by vals. Items v in vals are sorted according to val_to_key[v].

(
        vals: impl Iterator<Item = usize> + Clone,
        val_to_key: &[usize],
        max_key: usize,
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected