hackerrank v0.1.0 FP.Structures
Elixir solutions for HackerRank functional programming challenges: functional structures.
Link to this section Summary
Functions
Substring searching by KMP algorithm
John and fences 1
John and fences 2 - more time-performant
Order exercises (advanced) - find multiple maximum subarray sums given an array
Range minimum query - find multiple subarrays minimums
Matrix rotation
Binary tree: swap and traverse nodes
Link to this section Functions
kmp_string_search(string, pattern)
Substring searching by KMP algorithm
https://www.hackerrank.com/challenges/kmp-fp/problem
max_rect(heights)
John and fences 1
https://www.hackerrank.com/challenges/john-and-fences/problem
max_rect_divide(heights, n)
John and fences 2 - more time-performant
https://www.hackerrank.com/challenges/john-and-fences/problem
max_subarray_sums(a, n, k)
Order exercises (advanced) - find multiple maximum subarray sums given an array
https://www.hackerrank.com/challenges/order-exercises/problem
min_query_tree(a, n, queries)
Range minimum query - find multiple subarrays minimums
https://www.hackerrank.com/challenges/range-minimum-query/problem
rotate(matrix, times)
Matrix rotation
https://www.hackerrank.com/challenges/matrix-rotation/problem
swap_nodes(data)
Binary tree: swap and traverse nodes
https://www.hackerrank.com/challenges/swap-nodes/problem