daily pastebin goal
47%
SHARE
TWEET

Untitled

Farhanhm Mar 8th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Void ReverseInsertionSort(int[] array)
  2. {
  3.     for (int i=0;i<array.length;i++)
  4.     {
  5.         int currentValue = array[i];
  6.         while (i>=1&&currentValue>array[i-1])
  7.         {
  8.             array[i]=array[i-1];
  9.             i--;
  10.         }
  11.         array[i]=currentValue;
  12.     }
  13. }
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
 
Top