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.
Can someone explain this in simple terms to me? I was definitely one of the "Clunky many nested for loops" solutions, and I'm thoroughly lost trying to understand the recursion in this solution.
This is so much simpler and smarter than the way I did it, holy cow.
I'm running into the same issue. I'm not really sure what I've done wrong, but I'm getting hung up on that last test.
I can modify my code to get the correct answer for that specific instance, but doing so breaks the rest of my responses, so I must be doing SOMETHING wrong, but I can't figure out WHAT.
I both love and hate seeing an arrow function leading to a less than or equal to. It's like two arrows pointing to the same variable.
One thing I would like to see clarified for JS: The kata states that you will visit 3 towns. It passes in a variable for the number of towns to visit, so it should probably be assumed that your program should work for visiting any number of towns, but the problem makes it seem like this program ONLY needs to work for 3 towns, and that is not accurate.
This comment is hidden because it contains spoiler information about the solution