I recently had a backend engineering phone screen with eBay. The coding question started with the classic Meeting Rooms II problem (LeetCode 253), asking for the minimum number of conference rooms needed to accommodate a collection of meeting intervals.
Although the original problem was straightforward, the interviewer introduced two follow-ups that made the discussion more interesting. The first involved handling meetings arriving as a continuous stream, while the second introduced room capacities and meeting attendee counts. These extensions shifted the focus from a standard interval problem to dynamic scheduling and resource allocation.
Interview Details
Coding Screen: Meeting Rooms II and Dynamic Scheduling
Given an array of meeting time intervals, determine the minimum number of conference rooms required to schedule all meetings without conflicts. Each meeting is represented by two values:
The scheduling system must determine the minimum number of conference rooms needed to accommodate all the provided meetings. Meetings may overlap, and a single room cannot host multiple meetings at the same time. The objective is to return the smallest number of rooms that can accommodate the complete schedule.
I initially approached the problem using the standard interval-scheduling techniques associated with Meeting Rooms II. The discussion covered sorting meeting times and using a min-heap to track rooms based on their
Unlock Full Details
Create a free account to unlock this interview experience report.