Your question is Meeting Room Intervals. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Splunk teams schedule design reviews and incident retrospectives across shared conference rooms. Given meeting intervals, return the minimum number of rooms required so that no overlapping meetings use the same room.
Each interval is represented as [start, end], where start and end are integer timestamps. A meeting ending at time t does not overlap with a meeting starting at time t, so that room can be reused immediately.
Implement min_meeting_rooms(intervals).
n intervals, where each interval is a two-element list [start, end] and start < end.def min_meeting_rooms(intervals):