| 1 | class Solution |
| 2 | { |
| 3 | public: |
| 4 | int fib(int n) |
| 5 | { |
| 6 | if (n == 0) |
| 7 | { |
| 8 | return 0; |
| 9 | } |
| 10 | else |
| 11 | { |
| 12 | if (n == 1 || n == 2) |
| 13 | { |
| 14 | return 1; |
| 15 | } |
| 16 | return fib(n - 1) + fib(n - 2); |
| 17 | } |
| 18 | } |
| 19 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected