Question: will design a function to help organize multiple meetings during a day. Each meeting will have a start time and end time. Each meeting will

will design a function to help organize multiple meetings during a day. Each
meeting will have a start time and end time. Each meeting will need to reserve a private conference
room during that time. Your function will take all the meeting schedules and calculate the minimum
number of conference rooms you will need. Here are the requirements:
1. The function will take the input as a sequence of lists, each list only contains two numbers, the
start time and the end time. For simplicity, we assume the time is just a float number in the
range of 0.0 to 24.0. For example, the function may be given the following input:
findMinRooms([1.2,3.4],[2.3,5.0],[3.1,8.0])
Your code should return 3 as the result, since during this time window [3.1,3.4], all three
meetings will be going on in parallel. Another example:
findMinRooms([1.2,3.4],[2.3,5.0],[4.1,8.0])
this will return 2. Another example:
findMinRooms([1.2,3.4],[2.3,5.0],[3.1,8.0],[1.0,10.0])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!