Showing error in my code

code- https://ide.codingblocks.com/s/293189

@anubhavb11 take e = n, it will give correct output

it is not i think you should go through my code once again

@anubhavb11 i did e = n, it gave correct output. What is the problem you are facing?

showing wrong answer in all test case

@anubhavb11 if pow(mid, k) == n then you can just break at that point, no need to check further

still not working
code- https://ide.codingblocks.com/s/293189

@anubhavb11 https://ide.codingblocks.com/s/293459

1 Like