You can run and edit the algorithms, or contribute to them using Gitpod.io (a free online development environment) with a single click.
These implementations are intended for learning purposes. As such, they may be less efficient than the Java standard library.
Please read our Contribution Guidelines before you contribute to this project.
Our directory has the full list of applications.
-
Clone & build ```bash git clone https://github.com/TheAlgorithms/Java.git cd Java mvn test # or ./gradlew test if using Gradle ```
-
Troubleshooting & tips
- Ensure Java 11+ is installed (see
pom.xml). - If tests fail: try:
mvn clean install. - For large builds: use
-DskipTestswhen building and run tests separately. - Contributions: add Javadoc, follow package structure, add tests for new algorithms.
- How to get started
- Look for issues labelled
good first issue(once template is active). - Fork → branch → PR as per templates above.