You are viewing a single comment's thread. Return to all comments →
This is the solution in scala def lonelyinteger(a: Array[Int]): Int = { a.foldLeft(0)(_ ^ _) }
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 →
This is the solution in scala def lonelyinteger(a: Array[Int]): Int = { a.foldLeft(0)(_ ^ _) }