Question DSA-REC-0033
EasyCan every recursive function be rewritten without recursion?
- A.
No, never
- B.
Only for functions with one parameter
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Recursion and Backtracking question
Can every recursive function be rewritten without recursion?
No, never
Only for functions with one parameter
Sign up free to see the answer and a step-by-step explanation.
Yes, for example by using an explicit stack and a loop
Only in Python