Skip to main content
All Questions

Assign bookings to the fewest tennis courts with no overlapping bookings per court.

Unlock detailed company stats for this questionUpgrade

Given a collection of bookings with start and end times, assign courts such that no two overlapping bookings are assigned to the same court and the total number of courts used is minimized. Return the court assignment for each booking. This is essentially a scheduling and interval-overlap optimization problem.

Community answers

No answers contributed by the community yet.

Related courses

Course

Forward Deployed Engineering Interviews

Land your next role in forward deployed engineering (FDE) at top companies like Google, Anthropic, OpenAI, and startups. Learn from mock interviews, frameworks, and advice from senior candidates. Perfect your system design, coding, and behavioral interviews.

Course

Behavioral Interviews: A Practical Guide for Engineers

Get offers at the level you deserve. Prep for senior+ behavioral interviews at FAANG and Tier-1 companies. Made with staff and principal engineers from Meta, Netflix, Google, and more. Avoid downleveling, elevate past projects, and stop sounding like a robot.