Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.8k
Closed
Labels
Description
"deterministic linear solution is implemented in C++ standard library asstd::nth_elemen"
https://cp-algorithms.com/sequences/k-th.html
but I think the STL implements the nondeterministic one/deterministic nlogn one
- looks like kth order on random pivots, then if depth is too large, switch to make heap; pop min element k times