Test case failure

why my test case 4 and 5 is showin wrong , please debug my code .kindly Tell me where is my fault…

@firstrankforall
the main issue is when TimeTaken > mid, then inside if statement your doing TimeTaken = board[i] instead of *TimeTaken = board[i]T
Just correct that, your code will pass.
Also please mark this doubt as resolved if you don’t have further queries.

oh ! sorry for that ,my bad . may be T is not 1 in 4th and 5th test case going wrong , isn’t it :slight_smile::blush: let me check

Now it’s work fine … Thank you !

1 Like