Fibonacci Sequence complexity analysis — [Notes]

Tarun Jain
Jul 24, 2023

--

Time complexity analysis

O(2^n) → Fib (recursion)

O(n) → Fib (Iterative)

Referencehttps://youtu.be/pqivnzmSbq4

Space complexity analysis

O(n)

--

--

No responses yet