/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package array.visualizer; import static array.visualizer.ArrayVisualizer.*; import static array.visualizer.Swaps.*; /** * * @author S630690 */ public class QuickSort { public static void quickSort(int[] a, int p, int r) throws InterruptedException { if(pp && a[j] > x){ j--; comps+=2; } if (i < j) swap(a, i, j); else return j; } } }