Design a Vending Machine

Medium · Low-Level Design · about 40 minutes

Asked at Amazon, Google, Microsoft, Qualcomm, AMD, Broadcom, Micron, Nutanix.

Design a vending machine that accepts coins and notes, lets a user select a product, dispenses it with change, and supports refunds and restocking.

Related guides