Shopping Cart Pricing and Picking Order
Problem
Given shopping cart item records, compute the total quantity and total price. Support percentage discounts and buy-X-get-Y-free offers. For each SKU, select at most one promotion, choosing ...
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:
