hackerrank v0.1.0 FP.Intro
Elixir solutions for HackerRank functional programming challenges.
Link to this section Summary
Functions
Area of a curve by definite integrals
Compute the area of a Polygon
Evaluating e^x
Function or not - validating values x, y or x and f(x)
Compute the Perimeter of a Polygon
Reverse a list - without using Enum.reverse
Volume of a curve by definite integrals
Link to this section Functions
area(c, p, l, r, dx)
Area of a curve by definite integrals
https://www.hackerrank.com/challenges/area-under-curves-and-volume-of-revolving-a-curv/problem
area_polygon(coordinates)
Compute the area of a Polygon.
https://www.hackerrank.com/challenges/lambda-march-compute-the-area-of-a-polygon/problem
exp(x, no_of_terms, results \\ 1)
Evaluating e^x
https://www.hackerrank.com/challenges/eval-ex/problem
function?(xy)
Function or not - validating values x, y or x and f(x).
Given a list of x, y values, this function determines (true, false) whether the values could be input/output for a valid function. https://www.hackerrank.com/challenges/functions-or-not/problem
perimeter(coordinates)
Compute the Perimeter of a Polygon.
https://www.hackerrank.com/challenges/lambda-march-compute-the-perimeter-of-a-polygon/problem
reverse(numbers, results)
Reverse a list - without using Enum.reverse
https://www.hackerrank.com/challenges/fp-reverse-a-list/problem
volume(c, p, l, r, dx)
Volume of a curve by definite integrals
https://www.hackerrank.com/challenges/area-under-curves-and-volume-of-revolving-a-curv/problem