You are viewing a single comment's thread. Return to all comments →
Brute force C++ Code || Bit Manipulation
int findLonely(vector<int> arr) { int ans = 0; for(int i=0;i<arr.size();i++) { ans = ans ^ arr[i]; } return ans; }
Seems like cookies are disabled on this browser, please enable them to open this website
Bit Manipulation: Lonely Integer
You are viewing a single comment's thread. Return to all comments →
Brute force C++ Code || Bit Manipulation