-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
"deterministic linear solution is implemented in C++ standard library as std::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
mhayter