Why this code is not working for nth root!

@Shivani999 hey ,let me check your code.

ya sure! can you please tell me why cant it work for the above mentioned problem!
thank you!

@Shivani999 hey use power function in place of log here is code for refernce please check it:

i did use power function too ,but it didnt work

@Shivani999 hey please check the above code apke wala hi hai with slight modifications

okh…thanku!

@Shivani999 your welcm

why do we need to increment the mid by 1?

@Shivani999 woh actually start hmne 0 se krdia to hme to 1 se check krna hai islie mid+1 krdia taki woh originlly to usse hi check ho ,ap apne wala hi kro bs andr ka logic dekh lo.

okh…

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.