1.

In recursion, the condition for which the function will stop calling itself is ____________(a) Best case(b) Worst case(c) Base case(d) There is no such conditionThe question was posed to me in an online quiz.I would like to ask this question from Recursion in division Recursion of Data Structures & Algorithms II

Answer»

Correct option is (c) BASE case

For EXPLANATION: For recursion to end at some point, there always has to be a condition for which the FUNCTION will not CALL itself. This condition is KNOWN as base case.



Discussion

No Comment Found

Related InterviewSolutions