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.
About your comment's recursion part, I did it using a recursive solution in C++, therefore if you have no memory leaks or accidental copying, I think simply increasing the recursion limit in Python using "sys.setrecursionlimit(x)" would be fine.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cut the Tree
You are viewing a single comment's thread. Return to all comments →
About your comment's recursion part, I did it using a recursive solution in C++, therefore if you have no memory leaks or accidental copying, I think simply increasing the recursion limit in Python using "sys.setrecursionlimit(x)" would be fine.