Modular Power
Compute a^b mod m using fast exponentiation (recursion by halving the exponent).
Constraints
0 <= a, b <= 10^9 1 <= m <= 10^9
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.