Skip to content

Instantly share code, notes, and snippets.

View madisonsites's full-sized avatar
🍦

Madison Sites madisonsites

🍦
View GitHub Profile
#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