You are viewing a single comment's thread. Return to all comments →
Modulo some IO, this is my scala solution:
def perm(s: String): String = { s.sliding(2, 2) .toList .flatMap(_.reverse) .mkString("") }
Seems like cookies are disabled on this browser, please enable them to open this website
String-o-Permute
You are viewing a single comment's thread. Return to all comments →
Modulo some IO, this is my scala solution: