public static int[] selectionSort(int[] arr) { for(int i=0;i<arr.length;i++){ for(int j=i+1;j<arr.length;j++){ if(arr[i] > arr[j]) { int temp = arr[j]; arr[j] = arr[i]; arr[i] = temp; } } } return arr; }
标签:style int color nbsp public ati cti log post
public static int[] selectionSort(int[] arr) { for(int i=0;i<arr.length;i++){ for(int j=i+1;j<arr.length;j++){ if(arr[i] > arr[j]) { int temp = arr[j]; arr[j] = arr[i]; arr[i] = temp; } } } return arr; }
标签:style int color nbsp public ati cti log post
原文地址:https://www.cnblogs.com/weishao-lsv/p/8151265.html