1.

Which of these is not true about recursion?(a) Making the code look clean(b) A complex task can be broken into sub-problems(c) Recursive calls take up less memory(d) Sequence generation is easier than a nested iterationThe question was posed to me in exam.Asked question is from Recursion in division Argument Passing, Global vs Local Variables, Shallow copy vs Deep copy and Recursion of Python

Answer» RIGHT CHOICE is (c) RECURSIVE calls take up less memory

Explanation: Recursive calls take up a lot of memory and time as memory is taken up each time the FUNCTION is called.


Discussion

No Comment Found

Related InterviewSolutions