• + 1 comment

    Test Case 5 and 6 showing runtime error in python

    • + 0 comments

      You are hitting python's default recursion limit (which is quite conservative). Either revert your implementation into loops or use sys.setrecursionlimit() to increase the recursion depth.