This blog describes anything about @mrkn's thoughts, which includes computer programming (mostly Ruby, Haskell, and C++), mathematics, physics, and so on. Each article is written in English for learning it.

2010-09-06

We can get faster fib just returning two values

How do you make fib fast?
I don't recomend using memoization because it require waste memory.
I recommend returning two values.

No comments:

Post a Comment

Followers