update sort readme

This commit is contained in:
冉文杰
2017-05-03 16:43:22 +08:00
parent d5811e364c
commit 3c2a550e9b
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
>算法虐我千百遍,我待算法如初恋
这里的内容是我学习算法过程的一些记录,希望能一直坚持下去。
+2 -1
View File
@@ -94,6 +94,7 @@
1. 挖坑排序,2头向中间扫描,先从后向前找,再从前向后找。
2. 单向扫描
```
void quicksort(int *a, int left, int right){
if (left<right)//加上这个,不然有死循环,造成堆栈溢出,这也是递归结束条件
{
@@ -130,7 +131,7 @@
return i;
}
```