Limit Order Backlog
Robinhood interview questions · Hard · Coding round · 7 tests
Simulate a limit-order book with price constraints and partial fills. The key invariant is that matching continues greedily while the best buy price crosses the best sell price.
The full question, tests and reference solution are available with a plan that includes Robinhood.
Run your code with Ctrl+Enter to see results.