2171. 拿出最少数目的魔法豆
2171. 拿出最少数目的魔法豆
- 难度:
medium - 原始链接: https://leetcode.cn/problems/removing-minimum-number-of-magic-beans
- 标签:
排序,前缀和
解法一: 排序, 前缀和
1 | func minimumRemoval(beans []int) int64 { |
medium排序, 前缀和1 | func minimumRemoval(beans []int) int64 { |
Update your browser to view this website correctly.&npsb;Update my browser now