Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 8.6 Advanced: Recursion

Description

In this lesson, student learn the concept of recursion. Recursion is the idea that functions can call themselves within the function. This creates an iterative process that allows functions to iterate without using for or while loops, but only conditional statements. Students will practice using recursion, and model it with real world scenarios.


Objective

Students will be able to:

  • Define and use recursion methods in their programs.
  • Explain the key components of a recursive method.