You are viewing a single comment's thread. Return to all comments →
Kotlin Solution
fun lonelyinteger(a: Array<Int>): Int { return a.groupingBy { it }.eachCount().filterValues { it == 1 }.keys.first() }
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 →
Kotlin Solution