You are given an integer array prices representing the prices of different chocolates in a store, and an integer money representing the initial amount of money you have.
You must buy exactly
Return the amount of money you will have remaining after purchasing two chocolates with the minimum total cost. If you cannot purchase money.
Constraints:
prices.length
prices[i]
money
You are given an integer array prices representing the prices of different chocolates in a store, and an integer money representing the initial amount of money you have.
You must buy exactly
Return the amount of money you will have remaining after purchasing two chocolates with the minimum total cost. If you cannot purchase money.
Constraints:
prices.length
prices[i]
money