Challenge: Huge Fibonacci Number

Solve the Huge Fibonacci Number Problem.

We'll cover the following

Problem


Huge Fibonacci Number Problem

Compute the nn-th Fibonacci number modulo mm.

Input: Integers nn and mm.

Output: The nn-th Fibonacci number modulo mm.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.