80. 删除有序数组中的重复项 II https://leetcode.cn/problems/remove-duplicates-from-sorted-array-ii
80. Remove Duplicates from Sorted Array II https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii
125. 验证回文串 https://leetcode.cn/problems/valid-palindrome
125. Valid Palindrome https://leetcode.com/problems/valid-palindrome
75. 颜色分类 https://leetcode.cn/problems/sort-colors
75. Sort Colors https://leetcode.com/problems/sort-colors
88. 合并两个有序数组 https://leetcode.cn/problems/merge-sorted-array
88. Merge Sorted Array https://leetcode.com/problems/merge-sorted-array
977. 有序数组的平方 https://leetcode.cn/problems/squares-of-a-sorted-array
977. Squares of a Sorted Array https://leetcode.com/problems/squares-of-a-sorted-array
360. 有序转化数组 https://leetcode.cn/problems/sort-transformed-array
360. Sort Transformed Array https://leetcode.com/problems/sort-transformed-array
1329. 将矩阵按对角线排序 https://leetcode.cn/problems/sort-the-matrix-diagonally
1329. Sort the Matrix Diagonally https://leetcode.com/problems/sort-the-matrix-diagonally
1260. 二维网格迁移 https://leetcode.cn/problems/shift-2d-grid
1260. Shift 2D Grid https://leetcode.com/problems/shift-2d-grid
867. 转置矩阵 https://leetcode.cn/problems/transpose-matrix
867. Transpose Matrix https://leetcode.com/problems/transpose-matrix
14. 最长公共前缀 https://leetcode.cn/problems/longest-common-prefix
14. Longest Common Prefix https://leetcode.com/problems/longest-common-prefix
Prerequisites
Before reading this article, you need to learn:
Don't underestimate the array two-pointer technique; it can be very versatile. Let's look at some interesting example problems below.