Recursion Flashcards
1
Q
Definition of recursion
A
Recursion is a technique where a method or function calls itself.
2
Q
Recursion in D&C
A
Continue diving the problem until solution is trivial.
- Describe problem based on smaller sub-problems
- Figure out when to stop diving the problem