📄 quicksort_insert.h
字号:
#include"DataList.h"
#include"InsertSort.h"
#include"QuickSort.h"
template<class T>
void QuickSort_insert(dataList<T>& L,const int left,const int right)
{
if(right - left <= M)
InsertSort(L,left,right);
else
{
int pivotpos = L.Partition2(left,right);
QuickSort(L,left,pivotpos - 1);
QuickSort(L,pivotpos + 1,right);
}
}
template<class T>
void HybridSort(dataList<T>& L,const int left,const int right)
{
QuickSort(L,left,right);
InsertSort(L,left,right);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -