JB TAK FODEGA NHI .... TB TK CHODEGA NHI .... (MAANG)
L3 Parameterized and Functional Recursion
In this Lecture we learned what is the Parametrized and Functional Recursion.
Parametrized Recursion
Paramatrized Function are those Recursive Function that function have some paramerter.
Functional Recursion
Functional Recursion means we not have a ant parameter and we not print anything just we return the function
Notes
Note: Zoom for Better Understanding
Code Zone!
Recursion Python Code
Recursion Java Code
Recursion C++ Code
Sb Mai He Kru ...
Khud Bhi Kr le Khuch ..... Nalayk
Time Complexity:O(N) Linear Time for the Iteration.
Space Complexity:O(N) O(N) for the Recursive Stack Space.
Interview Docs File "All the Best" Team @DSAwithPrinceSingh