Recursion: The alternative to iteration
Most of us are pretty familiar with loops by now. When we are faced with problems like finding the sum of a list of numbers, we usually try to use loops to solve it. This algorithmic approach to solving problems is called iterative programming. However, as…