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
Please use spoiler flag next time.
"Note: Only valid inputs will be given."
they are all unreachable code
No idea, maybe because I already marked it for you?
Please use spoiler flag next time.
Lmaaoooo!
Yes. If it is 10000 ** 2, then your program runs 10000 times recursively. You can a ->
import sys; sys.setrecursionlimit(...)
, but it will prob be too slow. You have to use a diff approachPlease don't post code without marking it as having spoiler content. Read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
Your recursive code exceeds the maximum recursion depth.