-
Personal
- Cartagena
Pinned Loading
-
Small piece of code that performs th...
Small piece of code that performs the flatten operation over an array of numbers 1# Didn't want to spend too much on testing and documentation.
2# Instead, spent a while trying to implement it with elixir.
34class ArrayUtils
5 -
Handcrafted Array flattener
Handcrafted Array flattener 1require 'pry'
2# Write some code, that will flatten an array of arbitrarily
3# nested arrays of integers into a flat array of integers.
4# e.g. [[1,2,[3]],4] -> [1,2,3,4].
5 -
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.