This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. | |
#e.g. [[1,2,[3]],4] -> [1,2,3,4]. | |
#Try to avoid using language defined methods like Ruby's Array#flatten.* | |
# This feels like it can be solved with recursion, so let's try | |
#Okay, I'm not sure what's going on, but I'm starving, so I'm going to pause this for now | |
#I don't want to leave my application sitting in limbo and risk losing everything i already answered if the page re-loads | |
#so I'll 'submit' for now |