document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. //Insertion Sort
  2. void insertion (int a[],int n) {
  3. int i,j,v;
  4. for (i=2;i<=n;i++) {
  5.     v=a[i];
  6.     j=1;
  7. while (a[j-1]>v) {
  8.     a[j]=a[j-1]
  9.     j--;
  10.     a[j=v];
  11.     }
  12. }
');