educative.io

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


#1

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

View the lesson here.


#2

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.


#3

Yes please change the recursive code