Modular exponention


Code is giving 30/100, why not all test cases passing?
Is my approach wrong?

Hey @tgoel5884
pow will result in overflow
so u have to make ur own pow function and take modulo in intermediate steps

Incase u don’t know
(a+b)%x == (a%x +b%x)%x and this can be extended to any number of variable