Order Batching

Problem: Order Batching

DoorDash wants to combine food delivery orders into batches so that a Dasher can handle multiple orders together.

You are given n orders. Each order has:

  • order_id: ...

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: