← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.
Related: Top K Frequent Elements - O(n) Bucket Sort - O(n) bucket sort solution without heap