MCPcopy Create free account
hub / github.com/TheAlgorithms/Java

github.com/TheAlgorithms/Java @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
10,270 symbols 31,098 edges 1,574 files 3,445 documented · 34% updated 1d ago★ 66,1874 open issues

Browse by type

Functions 8,444 Types & classes 1,826
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

The Algorithms - Java

Build codecov Discord chat Gitpod ready-to-code

You can run and edit the algorithms, or contribute to them using Gitpod.io (a free online development environment) with a single click.

Open in Gitpod

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.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 8,444
Class 1,805
Interface 13
Enum 8

Languages

Java100%

Modules by API surface

src/main/java/com/thealgorithms/maths/MathBuilder.java53 symbols
src/test/java/com/thealgorithms/sorts/SortingAlgorithmTest.java47 symbols
src/test/java/com/thealgorithms/datastructures/caches/LIFOCacheTest.java37 symbols
src/test/java/com/thealgorithms/datastructures/caches/FIFOCacheTest.java36 symbols
src/test/java/com/thealgorithms/maths/MeansTest.java35 symbols
src/test/java/com/thealgorithms/maths/LeonardoNumberTest.java31 symbols
src/main/java/com/thealgorithms/datastructures/lists/SinglyLinkedList.java31 symbols
src/test/java/com/thealgorithms/others/MiniMaxAlgorithmTest.java30 symbols
src/test/java/com/thealgorithms/maths/KaprekarNumbersTest.java30 symbols
src/main/java/com/thealgorithms/datastructures/caches/LIFOCache.java30 symbols
src/main/java/com/thealgorithms/datastructures/caches/FIFOCache.java30 symbols
src/test/java/com/thealgorithms/datastructures/dynamicarray/DynamicArrayTest.java29 symbols

Dependencies from manifests, versioned

com.puppycrawl.tools:checkstyle13.7.0 · 1×
org.apache.commons:commons-collections44.5.0 · 1×
org.apache.commons:commons-lang33.20.0 · 1×
org.assertj:assertj-core
org.junit.jupiter:junit-jupiter
org.junit:junit-bom6.1.1 · 1×
org.mockito:mockito-core5.23.0 · 1×

For agents

$ claude mcp add Java \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page