Java
Java copied to clipboard
All Algorithms implemented in Java
### What would you like to Propose? Add Kruskal’s algorithm to the Greedy section of the algorithms. --- ## About the idea: Kruskal’s algorithm finds a Minimum Spanning Tree (MST)...
This adds the Kruskal's Minimum Spanning Tree algorithm mentioned in #7067. # Description --- Added the Kruskal algorithm and its corresponding unit tests using JUnit. # Implementation 1. Complete Algorithm...
- [ ] 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...
### What would you like to Propose? **Title:** Add Threaded Binary Tree Implementation for In-Order Traversal without Recursion --- ### 🧠 Overview A **Threaded Binary Tree** improves binary tree traversal...
### What would you like to Propose? **Proposal:** Add a new file containing a set of classic stack-based algorithms. **Algorithm Name and Problem Statement:** I propose adding a new file,...
### What would you like to share? Hi 👋, I came across this project and was interested in contributing to it for Hacktoberfest 2025. Could you please confirm if this...
### What would you like to Propose? I would like to propose adding Smooth Sort, an optimized variant of Heap Sort developed by Edsger Dijkstra. It adapts to partially sorted...
The directory "src/main/java/com/thealgorithms/matrix" does not have the java program for search a 2D matrix question. This question actually has two variations and also available in leetcode platform.So adding these question...
### What would you like to Propose? Issue Title: Add KMP (Knuth–Morris–Pratt) String Matching Algorithm Implementation Description: I would like to request the addition of the KMP string matching algorithm...
### What would you like to Propose? Hey, More codes can be added to the string folder of the repo which are as follows: 1. Removing stars from a string....