开发者_如何学PythonGot a little silly question that I hope someone can answer me. When a stack overflow happens, how can a recursive method help in this problem?
Thanks
It's often the case that unbounded recursive methods cause stack overflow errors. One way to try to avoid this is to make the recursion converge and to use tail-call optimization (if your language supports it).
精彩评论