2105. 给植物浇水 II
给植物浇水 II
- 难度:
medium
- 原始链接: https://leetcode.cn/problems/watering-plants-ii
- 标签:
贪心
解法一: 贪心
1 | func minimumRefill(plants []int, capacityA int, capacityB int) int { |
medium
贪心
1 | func minimumRefill(plants []int, capacityA int, capacityB int) int { |