Skip to content

shellfly/algo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This repository contains the Go source code for the algorithms in the textbook Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.

The official Java source code is here.

Goals

Make a Go implementation of the library so that a Go programmer can follow this book easily or prefer to demonstrate the algorithms using Go.

Try to keep the interface and variable name consistent with the original book while writing idiomatic go code.

Note

Unlike Java or Python where you can put main function in a file directly. In go the main function has to be in the main package and in the cmd directory by convention. To test each algorithm(data structure), instead of running the file directly, you have to run the file under cmd directory. Example: cmd/bag/main.go

Index

License

This code is released under MIT.

Contribute to this repository

Issue reports and code fixes are welcome. please follow the same style as the code in the repository and add test for your code.

About

A Golang library for the textbook Algorithms, 4th edition

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages