插入排序的时间复杂度最低为O(N),最高为O(N^2)
//插入排序(工作可能用到)实现从小到大排序
#include<stdio.h>
void swap(int *a,int *b){
int temp;
temp=*a;
*a=
插入排序的时间复杂度最低为O(N),最高为O(N^2)
//插入排序(工作可能用到)实现从小到大排序
#include<stdio.h>
void swap(int *a,int *b){
int temp;
temp=*a;
*a=