퀵정렬

public class QuickSort { public static void main(String[] args) { int[] a = { 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 }; quickSort(a, 0, a.length - 1); System.out.println(Arrays.toString(a)); System.out.println("-----------------------------"); int[] b = {10,70,20,30,40}; int p=quickSelect(b, 1, 0, b.length-1); System.out.println("정렬되지 않는 배열에서 두번째로 작은 값 : " + p); } public static void quickSort(int[] a, in..
알아가자
'퀵정렬' 태그의 글 목록