Quote:
Originally Posted by dhanulakshmi
recursive function is nothing but the function calls itself untill the given condition fails...but these recursive functions aren`t that much recomended ,because they will occupy more stack space..
Correct.
Most of the time iterative solution is better than recursive one.