Skip to content

umahmood/counting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Counting

A small Go library which implements the counting sort algorithm.

Installation

go get github.com/umahmood/counting

cd $GOPATH/src/github.com/umahmood/counting/

go test -v ./...

Usage

package main

import (
    "fmt"

    "github.com/umahmood/counting"
)

func main() {
   nums := []int{10, 7, 3, 1, 6, 4, 8, 2, 5, 9}
   sorted := counting.Sort(nums)
   fmt.Println(sorted)
   nums = []int{-88, -3, 1, 2, 5, 42}
   sorted = counting.Sort(nums)
   fmt.Println(sorted)
}

Documentation

[http://godoc.org/github.com/umahmood/counting](> http://godoc.org/github.com/umahmood/counting)

License

See the LICENSE file for license rights and limitations (MIT).

About

Counting a small Go library which implements the counting sort algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages