Tag: Recursion

Why are we using the Fibonacci Sequence to teach recursion?

It seems like almost every programming book uses the Fibonacci Sequence to teach recursion. At first glance, this seems logical: to calculate the Nth Fibonacci number, you must know the two before it. To calculate the 10th number, you add the 8th and 9th together. Recursion seems to make sense here, because if you want […]