Skip to content

Commit a87e7f4

Browse files
authored
Merge pull request #3 from nxexox/bublesort-fix
remove Swap to BubleSort
2 parents 8950283 + e362dcc commit a87e7f4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

BubbleSort.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ import (
44
"fmt"
55
)
66

7-
func swap(arrayzor []int, i, j int) {
8-
tmp := arrayzor[j]
9-
arrayzor[j] = arrayzor[i]
10-
arrayzor[i] = tmp
11-
}
12-
137
func bubbleSort(arrayzor []int) {
148

159
swapped := true;

0 commit comments

Comments
 (0)