Three Test Cases failed

https://ide.codingblocks.com/s/425062

three test cases failed.
I am unable to figure out the problem in the code

Hello @Ferogle check this is the corrected code:
https://ide.codingblocks.com/s/425180
Happy Learning!!

Why it’s failing when i sorted the array?

hello @Ferogle because you have to apply binary search on the time and not on the boards array and it is written in the question that you have to do in the sequence only you cant pick any board.
that is the reason you dont have to sort.

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.