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:
skuis a product identifier without|;product_nameis 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:
