Consider the following algorithm for calculating the nth Fibonacci number: function fib(n):if n - Study24x7
Social learning Network
2 followers study24x7 24 Jun 2024 01:31 PM study24x7 study24x7

Consider the following algorithm for calculating the nth Fibonacci number: function fib(n):
See more

A

O(n)

B

O(log n)

C

O(n^2)

D

O(2^n)

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles