Lonely Integer

  • + 0 comments

    This is the solution in scala def lonelyinteger(a: Array[Int]): Int = { a.foldLeft(0)(_ ^ _) }