Sorting algorithms/Bubble sort: Difference between revisions

Content added Content deleted
m (→‎{{header|Go}}: library change)
Line 1,002: Line 1,002:
fmt.Println("unsorted:", list)
fmt.Println("unsorted:", list)


bubblesort(sort.IntArray(list))
bubblesort(sort.IntSlice(list))
fmt.Println("sorted! ", list)
fmt.Println("sorted! ", list)
}
}
Line 1,015: Line 1,015:
}
}
}
}
if hasChanged == false {
if !hasChanged {
break
break
}
}