TheAlgorithms-C/leetcode/src/509.c
2019-09-26 08:29:31 -07:00

8 lines
120 B
C

int fib(int N){
if(N == 0)
return 0;
if(N == 1)
return 1;
return fib(N - 1) + fib(N - 2);
}