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.
Then you didn't understand what to do.
From what i understand, you can't start from n and go to n and n again, so here's what i did:
if (walk[0]===walk[1]){return false;}
If you're filling a huge array or printing too much to the console, or have some infinite loop, that's your code's problem, not a kata issue.
Please read this: https://docs.codewars.com/training/troubleshooting
That path won't take you back to the starting point:
Read this: https://docs.codewars.com/training/troubleshooting#print-input