1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-10 13:56:01 +08:00

feat: 修改代码

This commit is contained in:
喜欢芝士的妹妹
2023-08-30 22:12:32 +08:00
parent 1f3e23fa74
commit 6d81d1706a
17 changed files with 27 additions and 421 deletions

View File

@@ -1,13 +1,4 @@
/*
* @Description: 快速排序【伪代码】
* @Version: Beta1.0
* @Author: 【B站&公众号】Rong姐姐好可爱
* @Date: 2020-03-23 08:23:20
* @LastEditors: 【B站&公众号】Rong姐姐好可爱
* @LastEditTime: 2021-04-08 21:51:28
*/
// 快速排序【伪代码】
void QuickSort(ElemType A[] , int low , int high){
// low > high 表角标越界low=high 子表只有一个元素,不需要进行快排,已经有序
if(low<high){
@@ -22,9 +13,7 @@ void QuickSort(ElemType A[] , int low , int high){
QuickSort(A,pivotKey+1,high)
}
return A
}
int Partition(ElemType A ,int low , int high){