It seems python has a low recursion Limit creating problems like runtime error. I have faced this problem in the following questions. It seems we have to use sys.setrecursionlimit().
but this is also not working in some cases
(python2 same code) 18166286
Can anyone shed some light over this topic
did anyone face similar problems with python and why python3 is failing and python2 is passing with eventhough i set recursionlimit explicilty.