Coinbase·Software Engineer·Onsite - Coding / Algorithms
- Design and implement an in-memory crypto order management system that parses commands from stdin. Orders have an id, symbol, side, quantity, and state (LIVE, PAUSED, CANCELLED). Support CREATE, PAUSE, RESUME, CANCEL, GET, and COUNT commands, printing output for queries and ERROR for invalid operations or bad state transitions. The system needs to handle up to 200,000 commands efficiently.
“The problem itself is not crazy hard but the scale hint is what tripped me up at first.”