Marks :10
: 1 | : 1
The Fibonacci Sequence is a sequence that is governed by the following recurrence relation. $$$F(n)=F(n-1)+F(n-2)$$$. You are given an integer $$$n$$$. You have to print the $$$nth$$$ number in the fibonacci series. The output may be large so print the output module $$$1e9+7$$$.
A single integer $$$n$$$ $$$(2\le n \le10^6)$$$
A single integer, printing the $$$nth$$$ number from the Fibonacci series.
4
2
25
46368
The third number in the Fibonacci series is 2
0 , 1 , 1 , 2 ....
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.