Skip to content

munirwanis/sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sort

Sort library made with go

This library was made to implement the various sorts we made when we're studying algorithms.

The first sort implemented here is BubbleSort

Using

You can use this code as an example:

package main

import (
	"fmt"
	"math/rand"

	"github.com/munirwanis/sort"
)

func main() {
	var array = rand.Perm(10) // Creates random array with 10 items in it
  
	fmt.Println(array)
	sort.BubbleSort(array)
	fmt.Println(array)
}

Releases

No releases published

Packages

No packages published

Languages