Class assignment problem


In this question we just have to find the fibonacci right?
I still cant pass any of the test cases

Hello @mkidwai74 please try to submit it again.
your code is passing all the test cases.

In fibonacci series in the base we return n instead of n+1 right?
Then why are we returninf n+1 here?

fibonacci says that the current term will be the sum of the last two terms it does not day from where it will start.
it is just here in this question that we have obersved that it will form that fibonacci sequence if we take the first two terms of the sequence as: 1,2.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.