Question Bank
JavaScript Top-N Numbers: Two Approaches Quiz
Difficulty: Hard
Return the N largest numbers from an array (order-not-required), two ways (sort + slice and one-pass min-tracking buffer), plus two companions on heap-style updates and tie-aware quickselect.
