What is the advantage of recursive approach than an iterative approach?
A. Consumes less memory
B. Less code and easy to implement
C. Consumes more memory
D. All of the mentioned
Answer:B
What is the advantage of recursive approach than an iterative approach?
A. Consumes less memory B. Less code and easy to implement C. Consumes more memory D. All of the mentioned
Explanation: A recursive approach is easier to understand and contains fewer lines of code.