1.

Recursion is a method in which the solution of a problem depends on ____________(a) Larger instances of different problems(b) Larger instances of the same problem(c) Smaller instances of the same problem(d) Smaller instances of different problemsThe question was asked during an online interview.The origin of the question is Recursion topic in section Recursion of Data Structures & Algorithms II

Answer»

Correct CHOICE is (c) SMALLER INSTANCES of the same PROBLEM

Best explanation: In recursion, the solution of a problem DEPENDS on the solution of smaller instances of the same problem.



Discussion

No Comment Found

Related InterviewSolutions