Aggregate SKU Order Quantities and Prices

Given n order lines, each valid line has the format:

SKU_ID|SKU_NAME|QUANTITY|PRICE_IN_CENTS

QUANTITY is a non-negative integer and PRICE_IN_CENTS is the unit price in cents. For a...

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: