Pre Test
- In general, which of the following methods isn’t used to find the factorial of a number?
- Which of the following recursive formula can be used to find the factorial of a number?
- Which of the following problem cannot be solved using recursion?
- Choose the correct answer.
- Recursion is similar to which of the following?
Non iterative / recursive
Iteration
Dynamic programming
Recursion
fact(n) = n * fact(n)
fact(n) = n * fact(n+1)
fact(n) = n * fact(1)
fact(n) = n * fact(n-1)
Tower of Hanoi
Problems without base case
Tree Traversal
Fibonacci series
Recursion uses more memory compared to iteration?
Recursion is always better than iteration.
Recursion uses less memory compared to iteration.
Iterative function is always better and simpler to write than recursion.
Switch Case
Loop
If-else
None
