I am getting run-time error most of the time in python in problems involving trees. I have increased recursion limit then also I am getting run-time error .And same logic works in C++.
Some of my recent submissions 119637795,119420809 and there are many more .
I want help, Is there any way of doing DFS in python without getting run-time error.