Created
November 6, 2013 15:13
-
-
Save goldeneggg/7337663 to your computer and use it in GitHub Desktop.
project euler 24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ssbt | |
| object Euler24 { | |
| def main(args: Array[String]) { | |
| val result = List(0, 1, 2, 3, 4, 5, 6, 7, 8, 9).permutations.zipWithIndex.filter(_._2 == 999999).next._1.mkString | |
| println("Answer %s".format(result)) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment