Advertisement
sajid161

6:1

Jan 2nd, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1. int findFrequency(vector<int> v, int x){
  2.    
  3.    map<long long,int>mp;
  4.    for(auto u:v)
  5.    {
  6.        mp[u]++;
  7.    }
  8.    return mp[x];
  9.    
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement