Kth root time error


my test cases are running but i am getting time error for only one of test cases while submitting what is the error

I have edited your code, try to submit now,
I have simply included one condition in your while loop,

@yuktimutreja01 it has worked but can you please tell why there was problem if break was not there

This is because in that case, when u find out the required value, there is no need to further using the binary search technique, since while loop will keep on running… thus u need to use break statement .