Stock Exchange Order Matching Engine

Implement a simplified stock-exchange order matching engine.

The system receives N limit orders in arrival order. Each order has the format:

side order_id price quantity

Where:

  • `si...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: