Created
May 6, 2020 04:07
-
-
Save cedricconol/a2a7936bdec8b9366829cd86ea444b86 to your computer and use it in GitHub Desktop.
main function for bubble sort go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
var numbers []int = []int{33, 91, 76, 8, 22} | |
var ascending bool = true | |
fmt.Println("Original list: ", numbers) | |
bubblesort(numbers, ascending) | |
fmt.Println("Sorted list: ", numbers) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment