Design an Order Matching System (Buy/Sell/Modify/Cancel/Print)

Design and implement a simplified limit order matching system (order book) that supports the following commands. The original post only names the features, so the exact formats and rules below are fil...

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: