Please tell me why this code is not passing all the test cases

Please tell me why this code is not passing all the test cases

u need to calculate the power of a^ b in log n time

i think my code is also running in O(logn)

oh yes
take %c at every point
image

try this if still fails tell me code seems fine

ya it worked with some other little change.Thanku

1 Like