← All problems
Medium · Arrays & Hashing

Top K Frequent Elements

Return the k most frequent distinct values.

Full problem and submission ↗
main.js

Console

Ready