in question of finding kth root the code fails for this test case 1000000000000000 10
what should be improved in the code
Code not working
the loop which are using for calculating mid power p will give wrong ans for large value
it is not optimised
instead use inbuilt pow function
look at this code
this is correct approach to solve this question
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.