Top K Frequent Elements

 

347. Top K Frequent Elements

Solutions

Bucket sort.
Complexity: O(N)