Problem of the day
You are given the schedule of 'N' meetings with their start time 'Start[i]' and end time 'End[i]'.
You have only 1 meeting room. So, you need to return the maximum number of meetings you can organize.
The start time of one chosen meeting can’t be equal to the end time of the other chosen meeting.
'N' = 3, Start = [1, 3, 6], End = [4, 8, 7].
You can organize a maximum of 2 meetings. Meeting number 1 from 1 to 4, Meeting number 3 from 6 to 7.
6
1 3 0 5 8 5
2 4 6 7 9 9
4
You can organize a maximum of 4 meetings:
Meeting number 1 from 1 to 2.
Meeting number 2 from 3 to 4.
Meeting number 4 from 5 to 7.
Meeting number 5 from 8 to 9.
5
0 7 1 4 8
2 9 5 9 10
2
1 <= 'N' <= 10^5
0 <= 'Start[i]' < 'End[i]' <= 10^9
Time Limit: 1 sec