Bubble sort: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
YurikBot (discussione | contributi)
m robot Aggiungo: ru, zh
Riga 90:
{
int temp = 0;
for(int i j= array0;j<x.length - 1; i > 0; i--j++){
for(int j i= 0; j < ;i<x.length; ji++){
if(x[j]>x[i]){
if(array[j] > array[j+1]) // confronta gli elementi vicini
{ // scambiotemp=x[j];
temp = array[j+1]; x[j]=x[i];
array[j+1] = array x[ji]=temp; //swap boubble sort
}
array[j] = temp;
}
array[j] = temp; }
}