hackerrank v0.1.0 FP.MemoiDP

Elixir solutions for HackerRank functional programming challenges: memoisation, dynamic programming

Link to this section Summary

Functions

Pentagonal numbers - compute number of dots for recursive and overlapping pentagons of n size

Link to this section Functions

Link to this function

p(n, cache \\ %{1 => 1}, results \\ [])
p(list(), map(), list()) :: list()

Pentagonal numbers - compute number of dots for recursive and overlapping pentagons of n size.

https://www.hackerrank.com/challenges/pentagonal-numbers/problem