Hackerrank – Staircase

Problem Statement
A description of the problem can be found on Hackerrank.

Solution
Create n times a line consting of spaces (' ') and hashes ('#'). Each line contains incremented count of hashes and decremented count of spaces form 1 to n, respectively n downto 1.

I created solution in 4 languages:

All solutions are also available on my GitHub.

Scala

Java

JavaScript

Ruby