hackerrank v0.1.0 Algo.Imp

Elixir solutions for HackerRank algorithm challenges: implementation.

Link to this section Summary

Functions

Divisible sum pairs

Kangaroo

The grid search - find 2D subarray within a grid array

Link to this section Functions

Link to this function

divisible_sum_pairs(a, k)
divisible_sum_pairs([integer()], integer()) :: integer()

Divisible sum pairs

https://www.hackerrank.com/challenges/divisible-sum-pairs/problem

Kangaroo

Determine if jump distance to be equal eventually from different starting points and hop velocity.

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

Link to this function

grid_search(g, p, str_len)
grid_search([binary()], [binary()], integer()) :: boolean()

The grid search - find 2D subarray within a grid array

https://www.hackerrank.com/challenges/the-grid-search/problem

Link to this function

repeated_string(str, length)
repeated_string(binary(), integer()) :: integer()

Repeated string

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