We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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().
Swap Nodes [Algo]
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()
.