You are viewing a single comment's thread from:

RE: Programming Challenge 1 : Break it down further

in #steemgig8 years ago

Trying this challenge: https://repl.it/KOVc/1

Since each layer follows the same pattern I made a general purpose splitting function that returns an array and allows a block for each child. At the end I flatten it all and print it.

Since exact delimiters were not specified I assumed from the input. This will need to be more sophisticated for real world usage...

Sort:  

Nice and clean code man. I'm considering learning ruby on the side. Looks like a nice language to learn.