You are viewing a single comment's thread. Return to all comments →
** int lonelyinteger(vector a) { map freq; for(int i=0;i for(auto i:freq) { if(i.second == 1) { return (i.first); }
} return -1;
} **
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
** int lonelyinteger(vector a) { map freq; for(int i=0;i for(auto i:freq) { if(i.second == 1) { return (i.first); }
} **