I’m using bitwise operator here for fast exponentiation. What else can I do?
Test cases are failing
Hey Simarpreet actually the issue is you have to take mod at each step of exponentation because it may happen, at some point your answer gets out of integer range.
Debug your code with a=10 b=1024 c=1000000 for each iteration, you will undertand your mistake .
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.