dynamic programming with code implementation in c 2b 2b

Solutions on MaxInterview for dynamic programming with code implementation in c 2b 2b by the best coders in the world

showing results for - "dynamic programming with code implementation in c 2b 2b"
Ariana
03 Aug 2016
1int fibonacci(int n)
2{
3    if(n == 0)
4    {
5        return 0;
6    }
7    if(n == 1)
8    {
9        return 1;
10    }
11    else
12    {
13        return fibonacci(n - 1) + fibonacci(n - 2);
14    }
15}