What is the advantage of recursive approach than an iterative approach?
Consumes less memory
Less code and easy to implement
Consumes more memory
More code has to be written
Correct Answer: B — Less code and easy to implement
Explanation:
A recursive approach is easier to understand and contains fewer lines of code.