/scala-challenges

This repo will contain the solutions using scala for some coding challenges

Primary LanguageScala

Scala Challenges

Build Status

This repo will contain the solutions using Scala for challenges found on:

  • Books
  • Hacker Rank
  • Codility
  • CodeFights

Challenges

Codility

Missing Integer

Find smallest positive integer that is NOT in the given array:

Example:

for [1, 3, 6, 4, 1, 2] the missing integer is [5]
for [4, 1, 5, 6, 2] the missing integer is [3]

Others (Challenges proposed by Friends or Solved on hackatons)

Recursively reverse a string

Given a string, reverse the characters and return.

Example:

for "Test" it should return "tseT"
for "Return" it should return "nruteR"