From 4edf2dd20b300c27dcc96829e262aedcd438291a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 12 Jul 2020 11:35:03 +0100 Subject: have selection sort --- main.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 main.go (limited to 'main.go') diff --git a/main.go b/main.go new file mode 100644 index 0000000..aa4a82f --- /dev/null +++ b/main.go @@ -0,0 +1,14 @@ +package main + +import ( + "algorithms/ds" + "algorithms/sort" + "fmt" +) + +func main() { + fmt.Println("Hello to Algorithms Playground!") + a := ds.RandomIntegers(100, 1000) + fmt.Printf("Random: %v\n", a) + fmt.Printf("Sorted: %v\n", sort.Selection(a)) +} -- cgit v1.2.3