LeetCode 11. 盛最多水的容器

每次移动较小侧指针;如果移动到更小的可以跳过计算结果,从而做到加速优化。

LeetCode 11. 盛最多水的容器
LeetCode 283. 移动零

• 要 count 没用。 • i 到头以后,后面用 left遍历到底即可。

LeetCode 283. 移动零
LeetCode 128. 最长连续序列

先集合存储,然后只研究左断点即可;遇到左端点就向右查找到尽头;注意存储后直接遍历集合

LeetCode 128. 最长连续序列
No More 😰