Calculate Total Price of Shopping Cart Items

Given an array of item records, each record has the format:

sku|product_name|quantity|unit_price_cents

Where:

  • sku is a product identifier without |;
  • product_name is a product ...

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: