You are viewing a single comment's thread. Return to all comments →
in code c++
map<int,int> counter; int pairs=0; for(int& n:ar){ counter[n]++; if(!(counter[n] % 2)) pairs ++; } return pairs;
Seems like cookies are disabled on this browser, please enable them to open this website
Sales by Match
You are viewing a single comment's thread. Return to all comments →
in code c++