Skip to content

Commit

Permalink
修改快速排序
Browse files Browse the repository at this point in the history
  • Loading branch information
huihut committed Mar 9, 2018
1 parent fcf3f30 commit b43c794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Algorithm/QuickSort.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ void QuickSort(vector<int>& v, int low, int high) {
return;
int first = low; // 低位下标
int last = high; // 高位下标
float key = v[first]; // 设第一个为基准
int key = v[first]; // 设第一个为基准

while (first < last)
{
Expand Down

0 comments on commit b43c794

Please sign in to comment.