Please tell what is the problem in my code for Kth root

hello @sahilkhan2312000131

in ur ismid function u should run it till <=k.

also overflow may occur becuase mid^k can be a very large number.(check for case -> 1000000000000000 10 )

use pow function direcly inside if without storing it anywhere.

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.