• + 0 comments

    Extremely overengineered Swift solution:

    func lonelyinteger(a: [Int]) -> Int {
        a.reduce(0, ^)
    }