Comment

Comment by School-Cotton

Presumably the list is not ordered adversarially, so you can just use quickselect, at O(n) running time.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton