please help me in this question.... What is the difference between recursion and iteration??
Answers
Answered by
4
Answer:
Recursion is rarely the most efficient approach to solving a problem but iteration is almost always more efficient.Iteration is better than recursion.
Explanation:
Hope it helps
Thank you.
Answered by
2
Heya user ! ️✋
✍Here's the required answer :
⚫Recursion is usually slower than iteration due to overhead of maintenance stack whereas iteration does not use stack so it's faster than recursion.
⚫Recursion uses more memory than iteration whereas iteration consume less memory.
⚫Recursion makes code smaller , whereas iteration makes code longer .
*[ The words in bold and italics are keywords ]
_______________________________
_________________________
__________________
Thanks for the question ☺
ⒹⒾⒶⓂⓄⓃⒹ ⓆⓊⒺⒺⓃ
Similar questions
Computer Science,
5 months ago
Physics,
5 months ago
Computer Science,
5 months ago
English,
11 months ago
Biology,
1 year ago
Science,
1 year ago