8 lines
185 B
C++

#include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
vector<int> topKFrequent(vector<int> &nums, int k);
bool test(vector<int> &nums, int k, vector<int> &answer);
};