You are viewing a single comment's thread. Return to all comments →
C++ solution :
int lonelyinteger(vector<int> a) { int res=0; for (int i:a) res ^= i; return res; }
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 →
C++ solution :