You are viewing a single comment's thread. Return to all comments →
public static int lonelyinteger(List a) { // Write your code here int unique = 0;
for(int i : a){ unique = unique ^ i; } return unique; }
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 →
public static int lonelyinteger(List a) { // Write your code here int unique = 0;