TheAlgorithms/Java
#334 this week
All Algorithms implemented in Java
66.2K stars
21.3K forks
66.2K GitHub watchers
Updated 8/14/2026
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Use Cases & Benefits
- Provides implementations of a wide range of algorithms and data structures in Java for educational purposes.
- Offers a comprehensive, community-driven collection of algorithm examples that facilitate learning and experimentation in Java.
- Use for studying and understanding classic algorithms and data structures through practical Java code examples.
- Use for contributing new algorithm implementations or improving existing ones in a collaborative open-source environment.
- Use for preparing for coding interviews by practicing algorithm challenges implemented in Java.
About Java
The Algorithms - Java
You can run and edit the algorithms, or contribute to them using Gitpod.io (a free online development environment) with a single click.
All algorithms are implemented in Java (for educational purposes)
These implementations are intended for learning purposes. As such, they may be less efficient than the Java standard library.
Contribution Guidelines
Please read our Contribution Guidelines before you contribute to this project.
Algorithms
Our directory has the full list of applications.
Discover Repositories
Search across tracked repositories by name or description