Y
Hacker News
new
|
ask
|
show
|
jobs
by
conradludgate
700 days ago
Same with rust, there's the `select_nth_unstable` family on slices that will do this for you. It uses a more fancy pivot choosing algorithm but will fall back to median-of-medians if it detects it's taking too long