摘要:
# 二分查找 ## 标准模板 LeetCode 704 ```java class Solution { public int search(int[] nums, int target) { int left = 0; int right = nums.length - 1; while (lef 阅读全文
摘要:
1. 数组种的双指针 借助一个变量做到了降维的优化 1.1 左右指针 class Solution { public int maxArea(int[] height) { int left = 0; int right = height.length - 1; int max = 0; while 阅读全文