Calculate the Lowest Price with Discounts
Given purchase records for one transaction and a list of available discounts, compute the minimum possible total price.
Each purchase record contains:
product: product nameunit_price: p...
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:
