About Shipping (Minimum operations to make two consecutive consignments equal)

Problem: About Shipping (Minimum operations to equalize two consecutive consignments)

A shop has n item types. The quantity of the i-th item type is quantity[i] (1-based indexing).

The item...

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: