Lonely Integer

  • + 0 comments

    Javascript users... a.reduce((acc, num) => acc ^ num, 0);

    Use the XOR operator.