2079. 给植物浇水
给植物浇水
- 难度:
medium - 原始链接: https://leetcode.cn/problems/watering-plants
- 标签:
贪心
解法一: 贪心
1 | func wateringPlants(plants []int, capacity int) int { |
medium贪心1 | func wateringPlants(plants []int, capacity int) int { |
Update your browser to view this website correctly.&npsb;Update my browser now