Cannot figure out the last test case
Moodular Exponentiation Problem Number Theory Basics
hey @Mp18, you are getting answer in negative for this test case
56789 3452 100000
your output
-89455
correct output
57521
Dry run this code for this testcase.
1 Like
hey @Mp18 , if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved