You are viewing a single comment's thread. Return to all comments →
function lonelyinteger(a) { // Write your code here let result = 0; for (let i = 0;i< a.length;i++){ result = result ^ a[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 →
function lonelyinteger(a) { // Write your code here let result = 0; for (let i = 0;i< a.length;i++){ result = result ^ a[i]; } return result; }