"RecursionError: maximum recursion depth exceeded"
Issue the maximum recursion depth is reached. The maxinum depth is 1000 in python.
solution 01
"The default is 1000 levels deep and you can change that using the setrecursionlimit function in the sys module."
https://stackoverflow.com/questions/3289430/maximum-level-of-recursion-in-python
solution 02
Use an iterative approach.
No comments:
Post a Comment