Container Ledger with Customer Trades

Design a container ledger system. It tracks the number of containers (balance) held by each customer and supports:

  • ADD customer count: add count containers to the customer; output OK.
  • `TRAD...

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: