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>mp;
- for(auto u:v)
- {
- mp[u]++;
- }
- return mp[x];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement