Reconcile Unmatched Buy and Sell Trades

Given a batch of buy and sell trade records, return every record that cannot be reconciled with a counterpart.

Each record contains:

  • id: unique trade-record ID
  • timestamp: integer timesta...

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: