meetings[i] = [start, end] means a meeting runs from time start to time end. The employee cannot be in two meetings at once, but if one meeting ends exactly when another starts, they can make both.
Return True if they can attend every meeting, and False otherwise. The meetings are listed in no particular order.meetings=[[9, 10], [13, 15], [10, 12]] → True
The meetings run back to back: 9–10, 10–12, 13–15. Ending at 10 and starting at 10 is fine.
meetings=[[14, 16], [8, 11], [15, 17]] → False
The meetings 14–16 and 15–17 overlap, so both cannot be attended.
meetings=[] → True
meetings=[[9, 10], [13, 15], [10, 12]]
True
Run checks the first 3 tests in your browser. Submit checks all 94 tests on the server, hidden ones included.