public
Created

h&t.14

  • Download Gist
problem.txt
1 2
4444444444 777777777 999999999 7777777777 222 66666666666 4444444444 1111111111 222 22222222222 8888888888 777777777 00000000000 1111111111 66666666666
Hidden in the numbers is a string of *ASCII* character codes, what string do they represent?
solution.scala
Scala
1 2
// hack the planet
"4444444444 777777777 999999999 7777777777 222 66666666666 4444444444 1111111111 222 22222222222 8888888888 777777777 00000000000 1111111111 66666666666" split(" ") map(o => Integer.parseInt(o.size + o.substring(0, 1)).toChar) mkString

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.