Support Order and Batch Timestamp Lookup

You are given a list of events. Each event contains:

  • timestamp
  • order_id
  • batch_id
  • type, either open or close

The system writes open events to one file and close events to anot...

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: