You are viewing a single comment's thread. Return to all comments →
Javascript users... a.reduce((acc, num) => acc ^ num, 0);
Use the XOR operator.
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 users... a.reduce((acc, num) => acc ^ num, 0);
Use the XOR operator.