Lowest Cost Shirts
Problem
For the next n days, buy exactly one blue, green, or red shirt each day. On day i, the prices are blue_costs[i], green_costs[i], and red_costs[i], respectively.
You cannot buy th...
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:
