SHARE
TWEET

YOUJIZZ

a guest Jun 19th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         private int partitionDescending(int[] arr, int p, int r) {
  2.         int x = arr[p];
  3.         int i = p;
  4.         int j = r;
  5.         while (true) {
  6.  
  7.         while (arr[i] > x) {
  8.             i++;
  9.         }
  10.  
  11.         while (arr[j] < x) {
  12.             j--;
  13.         }
  14.         if (i < j) {
  15.             int temp = arr[i];
  16.             arr[i] = arr[j];
  17.             arr[j] = temp;
  18.         }
  19.         else
  20.         {
  21.             return j;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top