Fibonacci series recursion error
Hans Georg Schaathun
hg at schaathun.net
Sat Apr 30 15:21:26 CEST 2011
On Sat, 30 Apr 2011 12:29:00 +0100, Paul Rudin
<paul.nospam at rudin.co.uk> wrote:
: Clearly it makes a difference in any case where you'd hit the recursion
What kind of problems make you hit the limit?
Other than when you forget the base case, I mean.
: It's no big deal to do your own unwinding of the recursion to a
: loop, but the code is typically less clear.
Sure. And you have to live with your less clear code when you maintain
the system later.
:-- Hans Georg
More information about the Python-list