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…
More Apple interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Compare PPO, DPO, and GRPO
- Implement a Vision Transformer (ViT) from Scratch
- Sample from a Gaussian Distribution Using Only Uniform Sampling
- Diagnose a CTR Drop After a Ranking Model Launch