You are viewing a single comment's thread. Return to all comments →
JavaScript solution using Bitwise XOR. I wrote an article on this at here
function lonelyinteger(a) { return a.reduce((curr, acc) => curr^acc) }
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 →
JavaScript solution using Bitwise XOR. I wrote an article on this at here