logo

Crowdly

Task 1 There are n people entering and exiting a room. For each person  i , t...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Task 1

There are n people entering and exiting a room. For each person i, they enter at time a and exit at time b. Implement a function that finds the maximum number of people present in the room at the same time.

For example, given [(1,5), (2,6), (3,7)]:

  • at time 3–5 all three people are in the room simultaneously

More questions like this

Want instant access to all verified answers on courses.apriorit.com?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!