Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int findFrequency(vector<int> v, int x){
- map<long long,int> c;
- for(auto u : v) c[u]++;
- return c[x];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement