Computer Science, asked by fineday8, 11 months ago

please help me in this question.... What is the difference between recursion and iteration??​

Answers

Answered by Anonymous
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 DIAMONDQUEEN
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