Lonely Integer

  • + 0 comments

    Single line js solution:

    const lonelyinteger = (a) => (a.reduce((x, y) => x^=y));