摘要: ###对撞双指针(有贪心那味了) ####代码 class Solution { //对撞双指针 public int numRescueBoats(int[] people, int limit) { Arrays.sort(people); int n = people.length; int 阅读全文
posted @ 2020-12-19 09:39 浅滩浅 阅读(203) 评论(0) 推荐(0) 编辑