You are viewing a single comment's thread. Return to all comments →
C++
int sum = 0; map<int, int> mp; for(auto a : ar){ mp[a] += 1; } for(auto it=mp.begin(); it!=mp.end(); ++it){ sum += int(it->second / 2); } return sum;
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 →
C++