You are viewing a single comment's thread. Return to all 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().
thank you! was driving me crazy
thanks. i spent one hour solving #10 and #11