The best way is to convert the recursive version to an equivalent non- recursive version using explicit stack to simulate function call stack you may see the original code for recursive version as a reference to understand my code
【在 g*******y 的大作中提到】 : The best way is to convert the recursive version to an equivalent non- : recursive version using explicit stack to simulate function call stack : you may see the original code for recursive version as a reference to understand my code