GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Java/selectionSort.java at master · kkrpati/Java Expand file tree/ Copy pathselectionSort.javaMore file actions 19 lines (19 loc) · 401 Bytes / Copy pathselectionSort.javaFile metadata and controls19 lines (19 loc) · 401 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 public int[] selectionSort (int[] list) { int i, j, minValue, minIndex, temp = 0; for (i = 0; i < list.length; i++) { minValue = list[i]; minIndex = i; for (j = i; j < list.length; j++) { if (list[j] < minValue) { minValue = list[j]; minIndex = j; } } if (minValue < list[i]) { temp = list[i]; list[i] = list[minIndex]; list[minIndex] = temp; } } return list; } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |