You are viewing a single comment's thread. Return to all comments →
Simple X-OR
public static int lonelyinteger(List<Integer> a) { int ans = 0; for(int i: a) ans^= i; return ans; }
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 →
Simple X-OR