3 ms·
I personally consider generating Fibonacci sequences a spiffy example of recursion since due to its tree-recursive nature, one step further on top of linear pro
by motxilo 16y ago
I personally consider generating Fibonacci sequences a spiffy example of recursion since due to its tree-recursive nature, one step further on top of linear processes generated by factorial-like implementations. For instance, this very fact can be used to study exponential time complexities and serves as an introduction to important concepts like memoization.