Recursion Flashcards

1
Q

Definition of recursion

A

Recursion is a technique where a method or function calls itself.

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

Recursion in D&C

A

Continue diving the problem until solution is trivial.

  1. Describe problem based on smaller sub-problems
  2. Figure out when to stop diving the problem
How well did you know this?
1
Not at all
2
3
4
5
Perfectly