Calculate Inventory Total Cost
Problem: Calculate Inventory Total Cost
You are given a string[] items, where each element represents one inventory item in the following format:
sku|productName|quantity|unitPriceCents...
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:
