This is a Giter8 template for solving Codility test tasks in Scala.
Check out Codility lessons or challenges for example tasks.
From the official FAQ:
Yes, you can write your solution in an editor of your choice and paste the solution back into the Codility interface. Use the ‘Run’ button to make sure that the code has been copied properly and that Codility is able to compile and execute it. Your compiler is not necessarily the same as ours, so remember to write portable, standards-compliant code. The supported language version is displayed in the Codility interface.
This template contains an sbt project for one Codility test task.
- Apply the template:
- either with giter8:
g8 laughedelic/codility.g8
- or with sbt v1.0 or newer:
sbt new laughedelic/codility.g8
- either with giter8:
- Write your solution in
src/main/scala/Solution.scala
- Add test cases in
src/test/scala/Solution.scala
and runsbt test
- Once it's ready, copy-paste the content of
src/main/scala/Solution.scala
to the Codility editor and run tests there. Don't forget to choose Scala language in the editor interface.