LeetCode: 1962-Remove Stones to Minimize the Total 解題紀錄
Last Updated on 2022-12-30 by Clay
題目
You are given a 0-indexed integer array piles
, where piles[i]
represents the number of stones in the ith
pile, and an integer k
. You should apply the following operation exactly k
times: