You are given an integer array piles, where piles[i] represents the number of stones in the k.
You must perform the following operation exactly k times:
Choose any pile piles[i] and remove piles[i]
Return the minimum possible total number of stones remaining after performing the operation k times.
Note:
denotes the floor function, representing the greatest integer less than or equal to . You can apply the operation to the same pile multiple times.
Constraints:
piles.length
piles[i]
k
You are given an integer array piles, where piles[i] represents the number of stones in the k.
You must perform the following operation exactly k times:
Choose any pile piles[i] and remove piles[i]
Return the minimum possible total number of stones remaining after performing the operation k times.
Note:
denotes the floor function, representing the greatest integer less than or equal to . You can apply the operation to the same pile multiple times.
Constraints:
piles.length
piles[i]
k