Desktop only
Coding Challenges are optimized for Desktop
Come back on a wider screen - the live editor needs room to breathe. You can still read the problem brief above.
Come back on a wider screen - the live editor needs room to breathe. You can still read the problem brief above.
def assign_rooms(intervals: list[tuple[int, int]]) -> list[int]: ...def schedule_with_priority(
intervals: list[tuple[int, int, int]], # (start, end, priority)
max_rooms: int,
) -> list[int]:
"""Return the indices of accepted meetings."""