laughedelic / codility.g8

Giter8 sbt template for solving Codility test tasks in Scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codility task sbt project template

This is a Giter8 template for solving Codility test tasks in Scala.

Check out Codility lessons or challenges for example tasks.

Usage

From the official FAQ:

Can I use my own IDE?

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.

  1. Apply the template: It will ask you for the name of the project, input and output types. You can change it later in the code.
  2. Write your solution in src/main/scala/Solution.scala
  3. Add test cases in src/test/scala/Solution.scala and run sbt test
  4. 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.

About

Giter8 sbt template for solving Codility test tasks in Scala


Languages

Language:Scala 100.0%