First of all - yes, I know that there are a ton kind of similar questions about this but I still don't get it.
So the Big-O Notation of this code is O(2^n)
public static int Fibonacci(int n)
{
if (n <= 1)
return n;
else
return Fibonacci(n - 1) + Fibonacci(n - 2);
}
And even though if I run it using let's say 6 , function is getting called 25 times as you can see in this picture:
Fibonacci Shouldn't it be 64 because of O(2^6) = 64 ?