Top-K Selection

The ten largest of a million values: rank by counting, gather the winners, or bisect for a cutoff — and when each one wins.

5 tasks

  1. Rank by Counting
  2. Gather the Winners
  3. The Brightest Pixels
  4. Find the Cutoff Instead
  5. Which One Wins?

Start this module →

This page is an interactive exercise — the editor, the GPU runner and your saved progress need JavaScript. The text above is the full brief.