Recursion Flashcards

1
Q

How to store the result ??

A
  1. Using global variable
  2. Passing wrapper/reference object
  3. Building up the result.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly