← 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. Follow-up: Your algorithm's time complexity must be better than O(n log n), where n is the array's size.