Leetcode, Interval, Interview Questions, Google, Meta.
direct use case of using events instead of intervals. We compute the events first and sort them. Keep a counter to track the number of guests currently in the party. Whenever there is a start event, we increment the number of guests by 1 and whenever there is an end event we decrement the number of