Skip to content
Onsite

Build a vending machine

MediumP1Build

Design and implement a vending machine as an in-memory library in Node.js.

Time box: 75 minutes. Use the State pattern; make illegal transitions impossible.

Requirements

0 / 7

Stretch goals

0 / 3

Only after every requirement works.

Hints

Workspace

Your files are saved in this browser as you type.

When every requirement works, mark it complete to count it as solved.

Solution notes

How a strong candidate structures it, and what interviewers check.

Saved automatically