Comment

Comment by exact_string

You can use the median of medians with quickselect to guarantee the O(N) time complexity.

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton