hackerrank v0.1.0 FP.Recursion.Advanced
Elixir solutions for advanced HackerRank functional programming challenges: recursions.
Link to this section Summary
Functions
Convex hull
Crosswords-101
Functions and Fractals - Recursive Trees
Functions and fractals: Sierpinski triangle
Graham Scan - find points of a convex hull from a series of coordinates
Super digit
Link to this section Types
sequences()
sequences() :: [tuple()]
sequences() :: [tuple()]
solution()
Link to this section Functions
convex_hull_perimeter(points)
Convex hull
https://www.hackerrank.com/challenges/convex-hull-fp/problem
Find the perimeter of a convex hull from a series of coordinates, opted to implement Graham's scan algorithm. https://en.wikipedia.org/wiki/Graham_scan
cross_words(grid, words)
Crosswords-101
https://www.hackerrank.com/challenges/crosswords-101/problem
draw_trees(iterations)
Functions and Fractals - Recursive Trees
https://www.hackerrank.com/challenges/fractal-trees/problem
draw_triangles(iterations)
Functions and fractals: Sierpinski triangle
https://www.hackerrank.com/challenges/functions-and-fractals-sierpinski-triangles/proble
graham_scan(points)
Graham Scan - find points of a convex hull from a series of coordinates
See https://en.wikipedia.org/wiki/Graham_scan
For https://www.hackerrank.com/challenges/convex-hull-fp/problem
super_digit(n, k)
Super digit
https://www.hackerrank.com/challenges/super-digit/problem