my test cases are running but i am getting time error for only one of test cases while submitting what is the error
Kth root time error
I have edited your code, try to submit now,
I have simply included one condition in your while loop,
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 .