Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Seriously, really impressive!
This comment is hidden because it contains spoiler information about the solution
Well I never really practiced on using recursive on my code. That could be why the tests won't pass, unfortunately. Finding a way to flatten array seems to be the key here.
My solution is recursive and it works. Looking at the test cases, they don't go that many arrays deep. It's probable your solution is infinitely recursive.
I'm a little confused, but I'm also new to Javascript so bare with me. This test is tagged "recursion", but when I solve it using recursion, it fails because it says maximum call stack sized exceeded, even though there were only two functions on the call stack. Doesn't that mean it's not actually recursive? Thanks!