摘要: 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 忆象峰飞 阅读(6) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示