Airplane Seat Reservation API

Asked at Apple · Coding Questions · Difficulty: Easy · Last asked Jan 6, 2026

Build a small seat-reservation model for an airplane cabin. Passengers ask for a seat by its label, such as `"4B"`; the model books it if it is free and can optionally move the passenger to another free seat when it is not.

Loading the problem…