Wow, I did not see the stack-based solution in there at all. I tried the recursive approach and then one similar to @thejessleigh
and stopped there! At least I enjoyed this one more than Day 4!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Wow, I did not see the stack-based solution in there at all. I tried the recursive approach and then one similar to @thejessleigh and stopped there! At least I enjoyed this one more than Day 4!