Q & A by Maninder Singh

Question:

QUESTION: What is recursion, and how does it work in algorithms?

Answer:

Recursion is like a programming technique where a function calls itself to solve smaller instances of a problem. Each recursive call moves closer to the base case, ensuring termination.