Recursion vs. Iteration
This lesson discusses the differences between Recursion and Iteration.
We'll cover the following...
Is there a difference?
Both recursion and iteration are used for executing instructions repeatedly until a condition is true. So, where does the difference actually lie between Iteration and Recursion? In this lesson, let’s discuss a few factors that differentiate the two methods.
Definition
- Recursion refers to a situation where a method calls itself
- Iteration refers to a situation where some statements are