Java icon indicating copy to clipboard operation
Java copied to clipboard

All Algorithms implemented in Java

Results 922 Java issues
Sort by recently updated
recently updated
newest added

### What would you like to Propose? implementing the Contraction Hierarchies (CH) algorithm, a powerful preprocessing-based technique for extremely fast shortest path queries in large static graphs (e.g., road networks)....

enhancement

- [ ] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [ ] This pull request is all my own work -- I have not plagiarized it. - [ ] All filenames are...

## Summary This PR adds an implementation of **Kruskal's Minimum Spanning Tree (MST) algorithm** to the `graph` package. Kruskal’s algorithm is a classic greedy algorithm that finds the MST of...

Fixes #7143 Updated QuickSort implementation with detailed comments and improved clarity. - [ ] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [ ] This pull request is all my own work --...

### Summary This pull request introduces the `LengthOfLastWord` algorithm under the `strings` package. It also includes comprehensive JUnit test coverage to ensure correctness and reliability. ### Details - **LengthOfLastWord.java** Implements...

Automatically generated update of the directory tree.

### Summary This PR improves the existing `Factorial` implementation in the `divideandconquer` package by replacing the recursive algorithm with an optimized iterative version. The new implementation reduces space complexity, avoids...

Fixes #7105 The CONTRIBUTING.md file currently references "TheAlgorithms room in GITTER" for community questions, but the repository has migrated to Discord for community communication. Updated the reference to point to...

- [x] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [x] This pull request is all my own work -- I have not plagiarized it. - [ ] All filenames are in PascalCase....

Fixed formatting consistency by standardizing the link text to use lowercase 'guidelines' to match standard markdown link formatting conventions. - [ ] I have read [CONTRIBUTING.md](https://github.com/TheAlgorithms/Java/blob/master/CONTRIBUTING.md). - [ ] This...