Skip to content

Latest commit

 

History

History
92 lines (78 loc) · 3.25 KB

README.md

File metadata and controls

92 lines (78 loc) · 3.25 KB

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.