You are viewing a single comment's thread. Return to all comments →
JAVA: using XOR operator:
public static int lonelyinteger(List a) {
int result=a.get(0); for(int i=1;i<a.size();i++){ result^=a.get(i); } return result; }
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 →
JAVA: using XOR operator:
public static int lonelyinteger(List a) {