* * Bubble sort - http://en.wikipedia.org/wiki/Bubble_sort */
(arr []int)
| 5 | */ |
| 6 | |
| 7 | func BubbleSort(arr []int) { |
| 8 | for i := 0; i < len(arr); i++ { |
| 9 | for j := 0; j < len(arr)-1-i; j++ { |
| 10 | if arr[j] > arr[j+1] { |
| 11 | arr[j],arr[j+1] = arr[j+1],arr[j] |
| 12 | } |
| 13 | } |
| 14 | } |
| 15 | } |
nothing calls this directly
no outgoing calls
no test coverage detected