Rate Tips

Explain recursion with the example of determining your row in a stadium by asking the row in front of your what row it is… asking until you get to the first row, the base case.

  • In this example the Base Case is the first row, they know what row they are 1.
  • The recursive call involves asking the row in front of you what row their in and adding 1 to that number.
  • Here's an explanation: