Recursion Flashcards
1
Q
What is recursion?
A
Calling the same function inside function until base condition is met
2
Q
properties of recursion
A
1.smaller code size.
2. more time complexity.
3.functions calls itself until base condition is met.
3
Q
properties of iteration
A
- set of instruction repeatively executed.
2.Loops are used.
3.When the termination condition for the iterator ceases to be satisfied. - larger code size.
4.relative lower time complexity.