Hospital Appointment Booking API

Asked at Oracle · Coding Questions · Difficulty: Medium · Last asked Feb 4, 2026

Design and implement an appointment-booking REST API for a hospital with 1,000 doctors, each working 9 AM-5 PM in 15-minute slots. The API books the first available slot for a given doctor on a given date and must maintain state across calls. Asked as a coding-design hybrid round in an OCI virtual onsite.

Loading the problem…