InterviewDB Experience

Jihanki: Vending Machine State Machine Implementation

Interview Experience

Problem Implement a vending machine (Jihanki is Japanese for vending machine). The machine accepts coins, displays available items with prices, dispenses an item if enough coins have been inserted, and returns change. Follow-ups How would you enforce valid coin denominations (e.g., only 5, 10, 25, 50, 100 cents)? How do you handle concurrent access if multiple users interact simultaneously? Extend to support a maintenance mode that blocks purchases and allows restocking. How would you model this…

Full Details

🔒

Unlock all Ziphq questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a candidate experience report from a ziphq interview during the phone round.

It covers the following topics: Coding, Onsite, Phone .