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
This comment is hidden because it contains spoiler information about the solution
Yep - this was my solution as well!
Hi lxhoang, Stack level too deep usually means an infinite loop. Try looking into the code where you are using recursion and see if there is a condition that would cause it to never bottom-out.
Hi nwr, MemoryError occurs because call to range(1, n) generates a list e.g. range(1,10) will generate a list: [1, 2, 3, 4, 5, 6, 7, 8, 9]. Use a while loop it will solve your problem.