Bubble sort: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Riga 90:
{
int temp = 0;
for(j=0;j<array.length;j++){
{
for(i=j;i<array.length;i++){
if(x[j]>x[i]){
temp=x[j]; {
if(x[j]>x[i]){
{
temp=x[j]; // boubble sort
x[j]=x[i];
x[i]=temp; //swap boubble sort}
}
}
}
}