Climbing Stairs with Huge n
Medium
Matrix Exponentiation
You climb 1 or 2 steps at a time. Print the number of distinct ways to reach step n modulo 1,000,000,007.
Constraints
1 <= n <= 10^18
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.