s.luhmirins
12/04/2017, 10:43 AMval simple = input.map { it.split(" ") }
.map { it.size to it.toSet() }
.map { it.second.size == it.first }
.count { it }
val advanced = input.map { it.split(" ") }
.map { it.size to it.map { it.toCharArray().toSet() }.toSet() }
.map { it.second.size == it.first }
.count { it }
holgerbrandl
12/04/2017, 12:03 PMtoSet
allow for duplicate characters in a word?s.luhmirins
12/05/2017, 3:17 PM