LeetCode 28. 实现 strStr()(易) 字符串匹配的优化问题十分重要,必须知道Sunday、KMP(nuth–Morris–Pratt algorithm)算法。 2020-03-09 LeetCode 数组与指针
LeetCode 27. 移除元素(易) 当我们遇到 \(nums[i] = val\) 时,我们可以将当前元素与最后一个元素进行交换,并释放最后一个元素,这实际上使数组的大小减少了 1,最后返回 \(nums\) 的长度就行了。 2020-03-08 LeetCode 数组与指针