Understanding a Recursive Problem

Understanding the Problem

You should now have a clear understanding of how recursion works - what it is and when it can be used. Before you proceed writing your own recursive code, it is very important to understand the nitty-gritty details of how the code actually works.

Below is a basic example of how the order of execution for a recursive method changes at each successive recursive call.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy