Lê Nam Khánh
d92ab9d89c
chore: fix typos in src/main/java/com/thealgorithms/others/GaussLegendre.java ( #7040 )
...
Fix typos in src/main/java/com/thealgorithms/others/GaussLegendre.java
2025-11-05 11:56:34 +02:00
Lê Nam Khánh
08ee26f2b8
chore: fix typos in src/main/java/com/thealgorithms/others/Implementing_auto_completing_features_using_trie.java ( #7041 )
...
Fix typos in src/main/java/com/thealgorithms/others/Implementing_auto_completing_features_using_trie.java
2025-11-05 11:50:43 +02:00
Lê Nam Khánh
a3717f0563
chore: fix typos in src/main/java/com/thealgorithms/others/IterativeFloodFill.java ( #7042 )
...
Fix typos in src/main/java/com/thealgorithms/others/IterativeFloodFill.java
2025-11-05 11:43:02 +02:00
Lê Nam Khánh
c42e73bd95
chore: fix typos in src/main/java/com/thealgorithms/others/MemoryManagementAlgorithms.java ( #7043 )
...
Fix typos in src/main/java/com/thealgorithms/others/MemoryManagementAlgorithms.java
Co-authored-by: a <19151554+alxkm@users.noreply.github.com >
2025-11-05 11:36:52 +02:00
Lê Nam Khánh
2ff284960a
chore: fix typos in src/main/java/com/thealgorithms/strings/Pangram.java ( #7044 )
...
Fix typos in src/main/java/com/thealgorithms/strings/Pangram.java
Co-authored-by: a 19151554+alxkm@users.noreply.github.com
2025-11-05 11:25:18 +02:00
Lê Nam Khánh
5c965eb097
chore: fix typos in src/test/java/com/thealgorithms/datastructures ( #7045 )
...
Fix typos in src/test/java/com/thealgorithms/datastructures
2025-11-05 11:09:05 +02:00
Deniz Altunkapan
f0a437d08c
Workflow/close failed prs ( #6960 )
...
* chore: add workflow to close stale PRs with failed workflows
* Include workflow failures when closing stale PRs
* Filter meaningful commits to only include those within the last 14 days
2025-11-03 22:26:10 +00:00
Sourav Pati
100462d8e9
Added LU Decomposition Algorithm for matrix ( #6834 )
...
* Added LU decomposition algorthm
* Added LU decomposition algorthim
* Added LU decomposition algorthim
* Added LU decomposition algorthim
* Added LU decomposition algorthim
* Added LU decomposition algorthim
* Added LU decomposition algorthim
* Added LU decomposition algorthim
* Added LU decomposition algorthim
2025-11-03 22:29:44 +01:00
Yajunesh MR
82ff14c36e
feat: Add BitRotate utility for circular bit rotations ( #7011 )
...
* feat: Add BitRotate utility for circular bit rotations
* feat: Add BitRotate utility for circular bit rotations
* feat: Add BitRotate utility for circular bit rotations
* fix: Remove trailing spaces and add newline at EOF
---------
Co-authored-by: Yajunesh M R <yajunesh@Yajuneshs-MacBook-Pro.local >
2025-11-03 22:12:24 +01:00
sharan
d717ca4fd5
feat: Add Hierholzer's Algorithm for Eulerian Circuits ( #6726 )
...
* feat: Add Hierholzer's Algorithm for Eulerian Circuits
* fix: Add more test cases to improve code coverage
* feat: Add Hierholzer's Algorithm for Eulerian Circuits
* fix: Apply clang-format after merge
* fix: Apply all formatting, style, and efficiency fixes
* docs: Apply feedback and improve Javadoc
* docs: Add Hierholzer's Algorithm to DIRECTORY.md
2025-11-02 10:36:10 +00:00
Priyanshu Kumar Singh
08374248e9
[FEAT] Add Coulomb's Law for electrostatics ( #7017 )
...
Co-authored-by: Priyanshu1303d <priyanshu130d@gmail.com >
2025-11-01 09:28:44 +00:00
dependabot[bot]
bf8cc61254
chore(deps): bump org.junit:junit-bom from 6.0.0 to 6.0.1 ( #7019 )
...
Bumps [org.junit:junit-bom](https://github.com/junit-team/junit-framework ) from 6.0.0 to 6.0.1.
- [Release notes](https://github.com/junit-team/junit-framework/releases )
- [Commits](https://github.com/junit-team/junit-framework/compare/r6.0.0...r6.0.1 )
---
updated-dependencies:
- dependency-name: org.junit:junit-bom
dependency-version: 6.0.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-01 10:23:35 +01:00
JonathanButterworth
dfd8d6993f
Added surface area calculation for pyramid ( #6853 )
...
Co-authored-by: JonathanButterworth <JonathanButterworth>
2025-10-30 21:26:22 +00:00
sairamsharan
bb6385e756
feat: Add Stoer-Wagner Algorithm for Minimum Cut ( #6752 )
...
* feat: Add Stoer-Wagner Algorithm for Minimum Cut
* fix: Correct Stoer-Wagner implementation
* fix: Remove unused import
* fix: Apply clang-format
2025-10-29 09:08:05 +00:00
Keykyrios
68746f880f
feat: Add Chebyshev Iteration algorithm ( #6963 )
...
* feat: Add Chebyshev Iteration algorithm
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
* Update ChebyshevIteration.java
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
* Update ChebyshevIterationTest.java
* Update ChebyshevIteration.java
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
* update
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
* Update ChebyshevIteration.java
* Update ChebyshevIterationTest.java
2025-10-28 17:43:54 +02:00
Keykyrios
3c70a54355
feat: Add Neville's Algorithm ( #6842 )
...
* feat: Add Neville's algorithm for polynomial interpolation
* Update Neville.java
* style: Fix linter formatting issues.
* Handled Div by Zero Case
* Update NevilleTest.java
* Update Neville.java
* Update NevilleTest.java
* Update Neville.java
2025-10-28 10:14:59 +00:00
dependabot[bot]
14a0de4181
chore(deps): bump actions/github-script from 7 to 8 in /.github/workflows ( #6971 )
...
chore(deps): bump actions/github-script in /.github/workflows
Bumps [actions/github-script](https://github.com/actions/github-script ) from 7 to 8.
- [Release notes](https://github.com/actions/github-script/releases )
- [Commits](https://github.com/actions/github-script/compare/v7...v8 )
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-version: '8'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-28 09:12:35 +00:00
dependabot[bot]
55da3b9ee1
chore(deps): bump com.puppycrawl.tools:checkstyle from 12.1.0 to 12.1.1 ( #6972 )
...
Bumps [com.puppycrawl.tools:checkstyle](https://github.com/checkstyle/checkstyle ) from 12.1.0 to 12.1.1.
- [Release notes](https://github.com/checkstyle/checkstyle/releases )
- [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-12.1.0...checkstyle-12.1.1 )
---
updated-dependencies:
- dependency-name: com.puppycrawl.tools:checkstyle
dependency-version: 12.1.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 23:31:49 +01:00
Taranjeet Singh Kalsi
21eff8ad09
Added binary string to decimal converter ( #6915 )
...
added binary string to decimal converter
2025-10-26 22:39:39 +02:00
Deniz Altunkapan
ae2e40acab
Enhance stale PR auto-close to handle failed workflows ( #6951 )
...
* chore: add workflow to close stale PRs with failed workflows
* Include workflow failures when closing stale PRs
2025-10-26 18:02:31 +02:00
Krishna
a4cf6e36f4
test: Add comprehensive tests for JugglerSequence ( #6947 )
...
* test: Add comprehensive tests for JugglerSequence
- Added tests for input values 1, 2, 3, and 9
- Tests verify correct sequence output
- Improves code coverage for maths package
* fix: Format JugglerSequenceTest
2025-10-26 09:05:55 +00:00
Deniz Altunkapan
0cdbc58427
chore: add workflow to close stale PRs with failed workflows ( #6927 )
2025-10-26 09:00:37 +00:00
Indolyn Yi
2da0465fe0
feat(geometry): Add Bentley-Ottmann algorithm for line segment intersection ( #6871 )
...
* feat(geometry): add Bentley-Ottmann line segment intersection algorithm
- Implement sweep-line algorithm for finding all intersection points
- Time complexity: O((n + k) log n) where n is segments, k is intersections
- Uses event queue (PriorityQueue) and status structure (TreeSet)
- Handles vertical/horizontal segments, collinear overlaps, and touching endpoints
- Includes comprehensive Javadoc with examples and references
* test(geometry): add comprehensive tests for Bentley-Ottmann algorithm
- 19 test cases covering typical, edge, and degenerate cases
- Tests include: single/multiple intersections, parallel segments, grid patterns
- Performance test with 100 random segments
- All tests validate correctness of intersection detection
* style(geometry): fix code style
* test(geometry): Achieve 100% test coverage for BentleyOttmann
* style(geometry): fix code style again
* fix: correct import order in BentleyOttmann
* fix(geometry): Resolve SpotBugs and PMD static analysis warnings
* Reorder import statements in BentleyOttmannTest
---------
Co-authored-by: Deniz Altunkapan <deniz.altunkapan@outlook.com >
2025-10-25 22:18:45 +02:00
Priyanshu Kumar Singh
252155630e
[FEAT] Add general purpose Projectile Motion algorithm (Physics) ( #6928 )
...
[FEAT] Add general purpose Projectile Motion algorithm
Co-authored-by: Priyanshu1303d <priyanshu130d@gmail.com >
Co-authored-by: Deniz Altunkapan <deniz.altunkapan@outlook.com >
2025-10-25 22:12:45 +02:00
Priyanshu Kumar Singh
e21aee814c
[FEAT] Add Newton's Law of Gravitation algorithm ( #6855 )
...
Co-authored-by: Priyanshu1303d <priyanshu130d@gmail.com >
2025-10-25 17:18:15 +02:00
Indolyn Yi
ab65ac6485
feat(compression): Add Burrows-Wheeler Transform (BWT) and Move-to-Front (MTF) ( #6926 )
...
* feat(compression): Add Burrows-Wheeler Transform (BWT) and Move-to-Front (MTF)
* Resolve SpotBugs
* fix code style
2025-10-25 11:29:45 +02:00
Indole Yi
48ba1ae466
feat(compression): Add LZ77 and LZ78 algorithms ( #6910 )
...
* feat(compression): Add LZ77 and LZ78 algorithms
* Resolve Spotbugs warning in LZ78 by using Trie structure
* fix code style
2025-10-23 18:16:46 +02:00
Hardik Pawar
f66da5e5ee
refactor: Enhance docs, add tests in PrintMatrixInSpiralOrder ( #6636 )
...
* refactor: Enhance docs, add tests in `PrintMatrixInSpiralOrder`
* Fix error in BloomFilter
* Fix
* Fix
* Fix
2025-10-22 19:42:11 +00:00
Yash Rajput
89303690f2
Added SimplePendulumRK4 ( #6800 )
...
* Added SimplePendulumRK4
* Fixed build issue.
* Fixed build issue.
* Fixed build issue.
2025-10-21 20:18:32 +00:00
dependabot[bot]
873dd9785b
chore(deps): bump com.github.spotbugs:spotbugs-maven-plugin from 4.9.7.0 to 4.9.8.1 ( #6867 )
...
chore(deps): bump com.github.spotbugs:spotbugs-maven-plugin
Bumps [com.github.spotbugs:spotbugs-maven-plugin](https://github.com/spotbugs/spotbugs-maven-plugin ) from 4.9.7.0 to 4.9.8.1.
- [Release notes](https://github.com/spotbugs/spotbugs-maven-plugin/releases )
- [Commits](https://github.com/spotbugs/spotbugs-maven-plugin/compare/spotbugs-maven-plugin-4.9.7.0...spotbugs-maven-plugin-4.9.8.1 )
---
updated-dependencies:
- dependency-name: com.github.spotbugs:spotbugs-maven-plugin
dependency-version: 4.9.8.1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-21 10:40:47 +02:00
dependabot[bot]
4de2254183
chore(deps): bump com.puppycrawl.tools:checkstyle from 12.0.1 to 12.1.0 ( #6868 )
...
Bumps [com.puppycrawl.tools:checkstyle](https://github.com/checkstyle/checkstyle ) from 12.0.1 to 12.1.0.
- [Release notes](https://github.com/checkstyle/checkstyle/releases )
- [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-12.0.1...checkstyle-12.1.0 )
---
updated-dependencies:
- dependency-name: com.puppycrawl.tools:checkstyle
dependency-version: 12.1.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-21 10:19:09 +02:00
Indole Yi
d5289b92da
Fix ConvexHull to return points in counter-clockwise order ( #6810 )
...
* Fix ConvexHull to return points in counter-clockwise order
- Add sortCounterClockwise method to ensure CCW ordering
- Start from bottom-most, left-most point for deterministic results
- Fix issue where unordered HashSet broke downstream algorithms
- Add comprehensive tests with CCW order verification
* test(geometry): Achieve 100% test coverage for ConvexHull
2025-10-19 18:17:19 +00:00
Indole Yi
4a97258189
feat(compression): Add LZW and Arithmetic Coding algorithms ( #6799 )
...
* feat(compression): Add LZW and Arithmetic Coding algorithms
* test(compression): Improve test coverage for LZW and ArithmeticCoding
* style(compression): fix code style
2025-10-19 18:11:22 +00:00
Yash Rajput
a7f0bab021
Adding ElasticCollision2D ( #6802 )
...
* Adding ElasticCollision2D
* Fixing build issues.
2025-10-19 17:00:32 +00:00
Saahil Mahato
b312567dc3
feat: add DDA line drawing algorithm ( #6616 )
...
* feat: add DDA line drawing algorithm
* refactor: clang formatting
---------
Co-authored-by: Deniz Altunkapan <deniz.altunkapan@outlook.com >
2025-10-18 11:41:01 +00:00
Harshendu Swarnakar
6b7d201657
Hierholzer path algorithm ( #6822 )
...
* Added HierholzerEulerianPath algorithm
* Added Hierholzer Algorith to find Eulerian Path
* Added Hierholzer Algorith to find Eulerian Path
* Added Hierholzer Algorith to find Eulerian Path
* Added Hierholzer Algorith to find Eulerian Path
* Added Hierholzer Algorith to find Eulerian Path
* Added Hierholzer Algorith to find Eulerian Path
* Added Hierholzer Algorith to find Eulerian Path
---------
Co-authored-by: crashmovies <swarnakarharshendu420@gmail.com >
2025-10-17 23:53:26 +02:00
Hardik Pawar
4858ec9af0
refactor: Enhance docs, code, add tests in `MaximumSumOfDistinctSubar… ( #6649 )
...
* refactor: Enhance docs, code, add tests in `MaximumSumOfDistinctSubarraysWithLengthK`
* Fix
* Fix spotbug
* Fix
* Fix
* Fix
* Fix
2025-10-17 07:53:39 +00:00
Yash Rajput
e1773e9165
Adding DampedOscillator code ( #6801 )
...
* Adding DampedOscillator code
* Adding one more test case
* Adding one more test case
* Adding one more test case
* Fixing build issues.
* Fixing build issues.
2025-10-16 23:19:09 +02:00
Sameer Prajapati
fb5a7653c1
feat: Add Hungarian Algorithm (Assignment Problem) with tests and reference [GRAPHS] ( #6808 )
...
* feat(graph): add Hungarian Algorithm (assignment) with tests; update directory
* style(graph): split multiple variable declarations to satisfy Checkstyle
2025-10-16 23:05:48 +02:00
Deniz Altunkapan
3519a91497
Update DIRECTORY.md ( #6546 )
...
Co-authored-by: vil02 <vil02@users.noreply.github.com >
2025-10-16 13:13:40 +03:00
dependabot[bot]
1a910b52d4
chore(deps): bump com.github.spotbugs:spotbugs-maven-plugin from 4.9.6.0 to 4.9.7.0 ( #6796 )
...
chore(deps): bump com.github.spotbugs:spotbugs-maven-plugin
Bumps [com.github.spotbugs:spotbugs-maven-plugin](https://github.com/spotbugs/spotbugs-maven-plugin ) from 4.9.6.0 to 4.9.7.0.
- [Release notes](https://github.com/spotbugs/spotbugs-maven-plugin/releases )
- [Commits](https://github.com/spotbugs/spotbugs-maven-plugin/compare/spotbugs-maven-plugin-4.9.6.0...spotbugs-maven-plugin-4.9.7.0 )
---
updated-dependencies:
- dependency-name: com.github.spotbugs:spotbugs-maven-plugin
dependency-version: 4.9.7.0
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-16 11:37:36 +02:00
Sameer Prajapati
1437036b19
feat(graph): add Push–Relabel max flow with tests and index ( #6793 )
...
* feat(graph): add Push–Relabel max flow with tests and index
* style(checkstyle): reduce discharge parameter count via State holder
* chore(pmd): make discharge void and remove empty else; satisfy PMD
---------
Co-authored-by: a <alexanderklmn@gmail.com >
2025-10-15 22:51:14 +02:00
Hardik Pawar
f8688ba38d
refactor: Enhance docs, code, add tests in Means ( #6750 )
2025-10-15 09:14:00 +00:00
Hardik Pawar
c6497a23ec
refactor: Enhance docs, code, add tests in LucasSeries ( #6749 )
2025-10-15 09:07:49 +00:00
Hardik Pawar
f460c601d3
refactor: Enhance docs, code, add tests in HeronsFormula ( #6746 )
...
* refactor: Enhance docs, code, add tests in `HeronsFormula`
* Fix lint
2025-10-15 08:56:57 +00:00
Hardik Pawar
d62b438fcd
refactor: Enhance docs, code, add tests in HarshadNumber ( #6745 )
2025-10-15 08:46:17 +00:00
Hardik Pawar
219cc33588
refactor: Enhance docs, code, add tests in `LinearDiophantineEquation… ( #6744 )
...
refactor: Enhance docs, code, add tests in `LinearDiophantineEquationsSolver`
2025-10-15 08:42:16 +00:00
Microindole
ce6f7311f7
feat: Add RLE and Shannon-Fano compression algorithms ( #6779 )
...
* feat: Add RLE and Shannon-Fano compression algorithms
* Fix: Resolve CI failures for compression algorithms
* chore: trigger CI rebuild
2025-10-14 17:29:03 +00:00
Shivam Singh
b50d1d017b
Added Sentinel Linear Search . ( #6671 )
...
* Added Sentinel Linear Search .
* Fixed linter error
* Fixed linter errors
* Fixed linter errors in test fike
* Fixed linter errors in test file
* Fixed linter errors
2025-10-14 17:22:15 +00:00
Priyanshu Kumar Singh
b316dcf1c6
[FEAT] Implement Flattening MultiLevel LinkedList ( #6670 )
...
[FEAT] Implement Flattening Multilevel LinkedList
Co-authored-by: Priyanshu1303d <priyanshu130d@gmail.com >
2025-10-14 08:56:21 +00:00