+ 1
What is the difference between recursion and iteration.? 🤔
3 Respostas
+ 5
Iter: iterating through iterations of a loop (normally only a certain # of iterations)
Recursion: Goes on and on; has to have a base case to "break" from the infinite looping. For more info, see recursion.
+ 2
Recursion completes a task by repetitive call to a function.
Iteration completes a task by using loops.
+ 1
Recursion means calling a function by itsef..
Iteration means the loop continuosly executes until the condition becomes false