Recursion Flashcards
1
Q
How to store the result ??
A
- Using global variable
- Passing wrapper/reference object
- Building up the result.
2
Q
Recursion Patterns
A
- Using recursion for iteration
- Subproblems
- Fibonacci
- Towers Of Hanoi
- Selection ( mostly backtracking)
- N queens
- Ordering
- Divide and Conquer
- MergeSort
- Binary Search
- Depth First Search
- Tree/Graph traversals