Query Order and Batch Time Ranges from Open/Close Events

Given two sets of event records: open events and close events. Each record contains timestamp, order ID, and batch ID. An existing function only supports lookup from the open/close files...

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: