Fibonacci series recursion error

Hans Georg Schaathun hg at schaathun.net
Sat Apr 30 09:21:26 EDT 2011


On 2011年4月30日 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
: limit.

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 mailing list

AltStyle によって変換されたページ (->オリジナル) /