Skip to content

Commit

Permalink
fix three way quick sort wrong range
Browse files Browse the repository at this point in the history
  • Loading branch information
DoubleX69 committed Aug 16, 2018
1 parent c4e25e2 commit e1a0548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SortAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,6 @@ void quickSort2( vector<int>& v, int start, int end )
}

quickSort2( v, start, p_idx - 1 );
quickSort2( v, p_idx + 1, end );
quickSort2( v, right + 1, end );
}
}

0 comments on commit e1a0548

Please sign in to comment.