摘要: https://leetcode-cn.com/problems/trapping-rain-water/ 双指针解法。 1 public class Solution 2 { 3 public int Trap(int[] height) 4 { 5 int size = height.Lengt 阅读全文
posted @ 2020-03-31 18:42 Quintinz 阅读(168) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/container-with-most-water/ 双指针解法。 需要理解最大面积 1 public class Solution 2 { 3 //双指针解法,首先要理解 4 public int MaxArea(int[] hei 阅读全文
posted @ 2020-03-31 18:40 Quintinz 阅读(156) 评论(0) 推荐(0) 编辑