in reply to fibonacci numbers using subroutine?
Recursion can lead to some wonderfully beautiful solutions to programming problems, but not always efficiently. Memoize can often increase their efficiency greatly, so take a look at that too.
Post your solutions here for further comment, and enjoy your journey.
Good luck
---
[1] 30 years ago, when I was a student, one of the researchers told me about quicksort. He told me that to sort a list, I should split it in to two lists, sort each list, and repeat. That was when I recognised the beauty of recursion.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: fibonacci numbers using subroutine?
by JavaFan (Canon) on Aug 20, 2010 at 13:09 UTC |