About the Iteration to Recursion - Changing Iterative Code to Recursive category


This lesson will teach you how to change an iterative code to a recursive code.

View the lesson here.


There is issue in recursive code, if I pass 2, it will return me 2 which is incorrect.
Base condition should be less than 9 not 1.


Yes please change the recursive code