Search
⌘K

Leetcode 2961. Double Modular Exponentiation

Given tuples [a,b,c,m] and a target, return indices where ((a^b % 10)^c) % m equals target — the core challenge is evaluating this double modular exponentiation efficiently by using modular exponentiation and exponent reduction (e.g., digit cycles or Euler-type reductions) to handle the exponent tower.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.