Q. What is the time complexity of the recursive implementation used to find the nth fibonacci term?

  • (A) o(1)
  • (B) o(n2)
  • (C) o(n!)
  • (D) exponential
πŸ’¬ Discuss
βœ… Correct Answer: (D) exponential
Explanation: the recurrence relation is given by fibo(n) = fibo(n – 1) + fibo(n – 2). so, the time complexity is given by:

Explanation by: Mr. Dubey
the recurrence relation is given by fibo(n) = fibo(n – 1) + fibo(n – 2). so, the time complexity is given by:

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
768
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate