You are viewing a single comment's thread. Return to all comments →
xor the array you will get the digit with single occurence.
int xor = a[0];
for(int i=1; i
return xor;
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 →
xor the array you will get the digit with single occurence.
int xor = a[0];
for(int i=1; i
return xor;