Question DSA-REC-0021
EasyIn a recursive function, what is the recursive case?
- A.
The function's return type
- B.
The part that stops the recursion
- C.
Show answer and explanation
Answer: D
Each recursive call should move closer to the base case.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Recursion and Backtracking question
In a recursive function, what is the recursive case?
The function's return type
The part that stops the recursion
Answer: D
Each recursive call should move closer to the base case.
A loop inside the function
The part where the function calls itself on a smaller problem