logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на courses.apriorit.com?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!