Quick Sort
//java public class Solution { public int[] quickSort(int[] arr) { sort(arr, 0, arr.length-1); return arr; } private void sort(int[] arr, int left, int right){ if(left>=right) return; int pivot=partition(arr,left, right); sort(arr, left, pivot-1); sort(arr, pivot, right); } private int partition(int[] arr, int start, int end){ int pivot=arr[(start+end)/2]; while(start
2022. 10. 6.