public static void mi(int[] arr1){ for (int i = 0; i < arr1.length; i++) { int minVal=i; for (int j = i+1; j < arr1.length; j++) { if(arr1[j]<arr1[minVal]){ minVal=j; } } MyUtil.swap(arr1,i,minVal); } }
posted on 2022-07-09 15:41 静静书中仙 阅读(11) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 静静书中仙 Powered by .NET 9.0 on Kubernetes