Kth root question


what is the error?

hello @Sakshi_Suman
a) shrink ur search space , to avoid overflow

b) image

dont use pow function.
use loop to compute mid^k , if at any moment mid^i >n then break ur loop and make required updation

check this code for referne-> https://ide.codingblocks.com/s/279623

can you make changes to my code? as the other way which you are saying i dont really understand that!

image
this is what i m telling u to do.
i.e use loop to compute mid^k.

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.