摘要: 1049.最后一块石头的重量II class Solution: def lastStoneWeightII(self, stones: List[int]) -> int: total = sum(stones) target = total // 2 dp = [0] * (target + 1 阅读全文
posted @ 2023-11-27 21:53 忆象峰飞 阅读(12) 评论(0) 推荐(0)