Given N numbers in an array, your task is to keep at most the top K numbers with respect to their frequency. #42
Unanswered
RoboScriptSmith
asked this question in
Solution Ideas
Replies: 1 comment
-
class Solution { //this works |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
class Solution {
public:
vector<vector> kTop(vector& arr, int N, int K) {
vector<vector> result;
};
Beta Was this translation helpful? Give feedback.
All reactions