👻 平时学习一些算法的例子都记录下来, 每一步都理解明白,加上了注释,感兴趣的可以看看。 快慢指针模板代码 这里的i属于慢指针, j属于快指针 for(int i=0,j=0;j<n;j++){ if(xxx){ i++; } } 认真审题非常重要, 一个字一个字都要读懂 排序数组首先想到二分查找 排序是去重的基础;例如三数之和15题和全排列系列