Hackerrank – Evaluating e^x

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

Solution also available on my GitHub.

Hackerrank – Pascal’s Triangle

Problem Statement A description of the problem can be found on Hackerrank. Solution I created recursive function for factorial     . Then create all combinations of rows and column indexes. For input 4 it looks like:

Apply function for pascal triangle     for each combination. I created solution in Scala: The solution […]

Hackerrank – Extra Long Factorials

Problem Statement A description of the problem can be found on Hackerrank. Solution Read input and implement factorial function (recursive or imperative) using Big Integer if desired language does not support automatic conversion to Big Integers by default. I created solution in 3 languages: Scala Java Ruby Normally, I implement a solution also in JavaScript. […]