martes, 15 de junio de 2010

Sorting - Bubble Sort

public int[] bubbleSort(int[] a)
{
   int temp;
   for (int i =0; i < j =" 0;"> a[j+1])
   {
      temp = a[j];
      a[j] = a[j+1];
      a[j+1]= temp;
   }
   return a;
}

No hay comentarios:

Publicar un comentario