MCPcopy Create free account
hub / github.com/cessen/psychopath / quick_select

Function quick_select

src/algorithm.rs:203–231  ·  view source on GitHub ↗

Partitions the slice of items to place the nth-ordered item in the nth place, and the items less than it before and the items more than it after.

(slc: &mut [T], n: usize, mut order: F)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

quick_select_intsFunction · 0.85
median_splitFunction · 0.85

Calls 4

hash_u64Function · 0.85
partitionFunction · 0.85
lenMethod · 0.80
swapMethod · 0.80

Tested by

no test coverage detected