Advertisements
Advertisements
प्रश्न
State any one drawback of using recursive technique in a Java program.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
Disadvantages of recursion:
- Recursive functions are typically slower than non-recursive functions.
- Storing intermediate results on system stacks may demand significant memory space.
- The code is difficult to study and understand.
- It does not improve efficiency in space and time complexity.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
