经典的排序算法
摘要:1、冒泡 void BubbleSort(int[]nums,int n){ for(int i=0;i<a.length;i++){ flag=0; for(int j=0;j<a.length-1-i;j++){ if(a[j]<a[j+1]){ int tmp=a[j]; a[j]=a[j+1
阅读全文
posted @ 2020-03-31 21:28
posted @ 2020-03-31 21:28
posted @ 2020-03-22 21:40
posted @ 2020-02-18 12:15
posted @ 2019-12-25 21:54
posted @ 2019-06-13 17:11