Recursion Flashcards

1
Q

What is recursion?

A

Calling the same function inside function until base condition is met

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

properties of recursion

A

1.smaller code size.
2. more time complexity.
3.functions calls itself until base condition is met.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

properties of iteration

A
  1. set of instruction repeatively executed.
    2.Loops are used.
    3.When the termination condition for the iterator ceases to be satisfied.
  2. larger code size.
    4.relative lower time complexity.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly