Getting wrong ans for last case only…
Mod Exponentiaation
hey Divyam, This code is not of modular exponential. This is for Prateek Loves Candy. Please share correct code.
I have changed the link…pls check now.
hey Divyam, just change datatype from int to long long due to constraint.