Skip to content

TutorialEdge/go-generic-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Generic Algorithms

Welcome friends! 👋 This repo is where I'll be attempting to capture some generic algorithms written in Go!

Feel free to submit a PR and add any new algorithms if you fancy a challenge!

BubbleSort Algorithm

You can attempt to run the bubblesort algorithm example using the following commands:

$ cd bubblesort
$ go1.18beta1 run bubblesort.go                              
Go Generics Tutorial
[1 3 4 5]
[1.2 3.2 4.3 5.2 10.5]

QuickSort Algorithm

You can attempt to run the quicksort algorithm example using the following commands:

$ cd quicksort
$ go1.18beta1 run quicksort.go
[1 2 2 3 4 5 6 7]
[0.5 1.4 1.5 2 3.3 7.1 22.3 64.2]

Insertion Sort Algorithm

You can attempt to run the insertion sort algorithm example using the following commands:

$ cd insertionsort
$ go1.18beta1 run insertionsort.go 
[1 3 4 5]
[1.2 3.2 4.3 5.2 10.5]

Mergesort Algorithm

You can attempt to run the mergesort algorithm example using the following commands:

$ cd mergesort
$ go1.18beta1 run mergesort.go
[1 3 4 5]
[1.2 3.2 4.3 5.2 10.5]

Selection Sort Algorithm

You can attempt to run the quicksort algorithm example using the following commands:

$ cd selectionsort
$ go1.18beta1 run selectionsort.go
[1 3 4 5]
[1.2 3.2 4.3 5.2 10.5]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages