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.
This comment is hidden because it contains spoiler information about the solution
Generally no need to mark posts without code as spoilers BTW.
Spoilering a post means nobody gets notifications for it, and people who haven't solved in their selected language can't read it. If you don't have to spoiler, don't.
Print the length of the input at the start of your function. Read the last value before the crash.
Also: read the error message: "out of memory".
Then reconsider your life choices. :D recursion is a great tool ( I like it a lot! and I commend you for trying ), but in some languages it's not for every situation.
You know
.reverse
mutates its argument, right? See MDN.Please follow the Troubleshoting Guide, which will tell you to markup your code as code. Your code is unreadable. Help us help you!
Read about what match returns on MDN for instance.