• + 8 comments

    Using the recursive approach on Python3, failed at Test Case #10 and #11. Turns out the number of nodes exceeded the maximum recursion depth, fixed using sys.setrecursionlimit().