A shop is offering a special discount on candies. For every
You are given an integer array cost, where cost[i] denotes the price of the candy at index i. Return the minimum total cost required to acquire all candies.
Constraints:
cost.length
cost[i]
A shop is offering a special discount on candies. For every
You are given an integer array cost, where cost[i] denotes the price of the candy at index i. Return the minimum total cost required to acquire all candies.
Constraints:
cost.length
cost[i]