hackerrank v0.1.0 FP.AdHoc

Elixir solutions for HackerRank functional programming challenges: ad hoc.

Link to this section Summary

Functions

Remove duplicates (char)

Huge GCD

Rotate string

Link to this section Functions

Link to this function

dedup(str)
dedup(binary()) :: binary()

Remove duplicates (char)

https://www.hackerrank.com/challenges/remove-duplicates/problem

Link to this function

gcd(list)
gcd(list()) :: integer()

Huge GCD

Compute GCD for huge numbers via prime number decomposition. https://www.hackerrank.com/challenges/huge-gcd-fp/problem

Link to this function

rotate(str)
rotate(binary()) :: [binary()]

Rotate string

https://www.hackerrank.com/challenges/rotate-string/problem