Skip to content
RED SAG Skills
easy5 pts · first answer countsdynamic-programmingrecursioncomplexity

Cost of plain recursive Fibonacci

What is the time complexity of this function?

function fib(n) {
  if (n < 2) return n
  return fib(n - 1) + fib(n - 2)
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions