QUESTION LINK
I tried this : My Solution
Help me with this.
for(auto x:m){
if(x.second!=0)
{cout<<"NO\n"; break;}
cout<<"YES\n";}
See how many times you are printing in a loop.
1 Like