Problem Statement
A description of the problem can be found on Hackerrank.
Solution
1 2 3 |
object StringReductions extends App { println(io.Source.stdin.getLines().toList.head.distinct) } |
Solution also available on my GitHub.