Hackerrank – Is Fibo

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

Solution
Create Fibonacci sequence and check if the actual Fibonacci number is equals number n. Stop the sequence if actual Fibonacci number is greater then n.

I created solution in:

All solutions are also available on my GitHub.

Java

JavaScript

Scala

Ruby