摘要: 常用算法如下: 1、冒泡排序 for(int i=0;i<n;i++){ for(int j=0;j<n-1-i;j++){ if(temp[j]>temp[j+1]){ int t=temp[j]; temp[j]=temp[j+1]; temp[j+1]=t; } } } 2、快速排序 publ 阅读全文
posted @ 2021-02-24 10:02 归去来兮辞 阅读(92) 评论(0) 推荐(0) 编辑