Changing Iterative Code to Recursive
This lesson will teach you how to convert iterative code to recursive.
We'll cover the following
The key to transforming iterative code to recursive code is to find the specific lines of code that get transformed between the two implementations. The code below shows the two types of code followed by an explanation.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy