摘要:
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 阅读全文
摘要:
https://leetcode-cn.com/problems/container-with-most-water/ 双指针解法。 需要理解最大面积 1 public class Solution 2 { 3 //双指针解法,首先要理解 4 public int MaxArea(int[] hei 阅读全文