Power Function (Fast Exponentiation)
Medium
Math & Number Theory
Compute x raised to the power n modulo 1,000,000,007 for large n.
Constraints
0 <= x <= 10^9 0 <= n <= 10^18
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.