Open arunsrinivasan opened 9 years ago
@arunsrinivasan is this identical to #3804?
Not identical but could use common internal C fun.
Is like the Rfast::nth
function that I mentioned in #3804 ?
This is de-facto free once #5167 is merged by returning the root of the heap once instead of extracting the min/max until the heap is empty.
Look for linear average (and worst case) performance.