Also reported as LeetCode 347 · Catalog Top K
Amazon coding question, reconstructed from 13 candidate reports (October 2025 to October 2026). Tests: hash-map counting, grouping and joins; heaps, top-k and greedy scheduling. Candidates reported 6 follow-ups. The write-up includes a Python solution that passes 6 test cases.