Meeting Assistant
Implement a simple meeting assistant. A list of strings, events[n], in the form
"<person_name> <action> <start> <end>" is provided where
person_name performs action from start to end,
both inclusive. Times are formatted HH:MM. Find the earliest time in the day, from "00:00" to "23:59",
when all people mentioned in at least one event are available for a meeting of k minutes.
Report the answer as "HH:MM" or the string "-1" if it is not possible.
Complete the function getEarliestMeetTime in the editor below.
getEarliestMeetTime takes the following arguments:
- 1.
String events[n]: event descriptors - 2.
int k: meeting duration
Returns
string: the earliest time for the meeting or "-1" if it is not possible
1Example 1
2Example 2
3Example 3
Constraints
Limits and guarantees your solution can rely on.