Analysis updated 2026-06-24
Study classic computer science algorithms like sorting, searching, and graph traversal with ready-to-run Go code.
Prepare for technical coding interviews by reading and running self-contained Go algorithm examples.
Learn how LRU and LFU caches work by reading annotated Go implementations with tests.
See how encryption ciphers and string matching algorithms are written in idiomatic Go.
| thealgorithms/go | matryer/xbar | ginuerzh/gost | |
|---|---|---|---|
| Stars | 18,032 | 18,015 | 17,940 |
| Language | Go | Go | Go |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | developer | developer | ops devops |
Figures from each repo's GitHub metadata at analysis time.
This repository is a collection of algorithms and data structures implemented in the Go programming language, intended for educational purposes. It is part of the broader "TheAlgorithms" open-source project, which produces similar collections in many different programming languages. The codebase covers a wide range of topics: string matching algorithms, mathematical operations using binary arithmetic, sorting and searching, graph algorithms, caching strategies (including LRU and LFU caches, which are techniques for deciding what to keep in memory when space is limited), encryption ciphers, and many others. Each implementation is a self-contained Go package with documented functions. The repository includes automated tests and is set up with continuous integration to verify that all implementations pass their tests. It is designed for people learning algorithms, practicing for technical interviews, or studying how classic computer science concepts translate into Go code. Contributions are welcome and the project follows specific contribution guidelines.
A collection of algorithms and data structures implemented in Go for learning, interview prep, and studying computer science fundamentals.
Mainly Go. The stack also includes Go.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.