选择排序
2021-06-20 14:06
阅读:644
标签:temp sele div 选择 sel nbsp col ati public
public static void selectSort(int[] arr) { for(int i=0; ii) { int k=i; for(int j=k+1; j j) if(arr[j]arr[k]) k=j; if(k!=i) { int temp=arr[k]; arr[k]=arr[i]; arr[i]=temp; } } }
选择排序
标签:temp sele div 选择 sel nbsp col ati public
原文地址:https://www.cnblogs.com/David-Hou/p/9688572.html
上一篇:Spring运行在tomcat上
下一篇:对python的一些思考
评论
亲,登录后才可以留言!