Golang translations of the Java source code for the algorithms and clients in the textbook Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
Try to keep the interface and variable name consistent with the original Java source code while writing idiomatic Go code.
Note: Most clients are in example_xxx_test.go.
See index.md.
This code is released under GPLv3.
- https://github.com/kevin-wayne/algs4: The official Java source code repository
- https://github.com/shellfly/algo: Go implementation
- https://github.com/garyaiki/Scala-Algorithms: Scala implementation
- https://github.com/nguyenqthai/Algs4Net: .Net implementation
- https://github.com/itu-algorithms/itu.algs4: Pthon implementation
- https://github.com/shellfly/algs4-py: Python implementation
Feel free to pull requests or issue reports. Appreciate the contribution of high-quality test cases, code fixes and coding style improvements.