Hacker News new | ask | show | jobs
by smiths1999 2079 days ago
Well I was actually thinking of quickselect, but regardless I was too quick to post. Quickselect is O(n) average time (as you pointed out).