Piotr Idzik
0b0cefe9f9
style: include UTAO_JUNIT_ASSERTION_ODDITIES_ACTUAL_CONSTANT ( #7239 )
2026-01-24 14:16:48 +01:00
Piotr Idzik
0f9139dc42
style: include UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_EQUALS ( #7229 )
2026-01-22 09:24:45 +01:00
Piotr Idzik
0e8291e669
style: include UTAO_JUNIT_ASSERTION_ODDITIES_USE_ASSERT_NOT_NULL ( #7226 )
2026-01-21 10:55:09 +01:00
Gopesh Pandey
7339b9dfe9
Add distance between two points algorithm ( #7218 )
...
* Add distance between two points algorithm
* Create DistanceBetweenTwoPointsTest.java
* DistanceBetweenTwoPoints.java
* Fix test file package and project structure
* Delete src/test/java/com/thealgorithms/DistanceBetweenTwoPointsTest.java
* Apply clang-format compliant formatting
* Apply clang-format
---------
Co-authored-by: a <19151554+alxkm@users.noreply.github.com >
2026-01-19 21:36:03 +01:00
Chahat Sandhu
1b9373e71a
feat: add Bell Numbers algorithm using Aitken's Array ( #7219 )
...
* feat: added Bell Numbers algorithm using Aitken's Array
* style: applied clang-format fixes
2026-01-19 09:59:58 +00:00
NYAMATHABAD KOUSHIK SAI
2707da25e3
Add recursive factorial implementation with tests ( #7178 )
...
* Add recursive factorial implementation with tests
* [STYLE] Apply clang-format
* Move recursive factorial to recursion package and remove duplicate
* Move recursive factorial to recursion package and remove duplicate
* Apply clang-format to factorial recursion tests
* Apply clang-format to factorial recursion tests
---------
Co-authored-by: Koushik Sai <nyamathabadkoushik@gmail.com >
Co-authored-by: Deniz Altunkapan <deniz.altunkapan@outlook.com >
2025-12-22 20:15:50 +00:00
Saniya Mane
7d51c7f320
Add additional edge cases to GCD unit tests ( #7174 )
...
* Add additional edge cases to GCD unit tests
* Rename GCD test methods and add descriptive names
* Fix formatting in GCD tests
---------
Co-authored-by: Deniz Altunkapan <deniz.altunkapan@outlook.com >
2025-12-18 07:55:03 +00:00
Rajuri Likhitha
2911a7b52c
ExtendedEuclideanAlgorithm ( #7172 )
...
* commit1
* Fix clang-format spacing in array declarations
2025-12-17 22:14:12 +01:00
Taranjeet Singh Kalsi
d9f2ac8340
Added program to check Lucky number ( #6962 )
...
added program for lucky number
2025-12-14 10:29:14 +00:00
Taranjeet Singh Kalsi
ac6fef19dc
Added program to check either number is Evil or Odious ( #6958 )
...
added program for evil number
2025-11-30 22:37:41 +00:00
Taranjeet Singh Kalsi
a9ba87c4b6
Added program to check Abundant number ( #6961 )
...
added program for abundant number
2025-11-28 08:51:28 +00:00
GOPISETTI NAVADEEP
c6880c195d
feat: add Sieve of Eratosthenes algorithm ( #7071 )
...
* feat: add Sieve of Eratosthenes algorithm
- Implement Sieve of Eratosthenes for finding prime numbers up to n
- Add comprehensive unit tests with edge cases
- Include JavaDoc documentation
- Time complexity: O(n log log n)
- Space complexity: O(n)
Resolves #6939
* fix: remove trailing spaces
* fix: apply clang-format
2025-11-16 12:00:21 +00:00
Krishna
3979e824b7
Add Power of Four Check using bit manipulation ( #7065 )
...
* Add Power of Four Check using bit manipulation
- Implements isPowerOfFour method using bit manipulation
- Checks if number is power of two and has bit at even position
- Includes comprehensive unit tests
- Fixes #6940
* Fix code formatting in PowerOfFourTest
* Move PowerOfFour classes to maths package
* Fix package declaration in PowerOfFourTest
* Fix code formatting in PowerOfFourTest
* Remove redundant import from PowerOfFourTest
* Remove unrelated file
2025-11-15 18:36:01 +01:00
Taranjeet Singh Kalsi
98eecb9f16
Added program to check Smith number ( #6955 )
...
added smith number program
2025-11-15 09:32:06 +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
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
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
Hardik Pawar
f30d10117d
refactor: Enhance docs, code, add tests in LeonardoNumber ( #6743 )
2025-10-13 07:42:10 +00:00
Hardik Pawar
387ecef310
refactor: Enhance docs, code, add tests in KeithNumber ( #6748 )
...
* refactor: Enhance docs, code, add tests in `KeithNumber`
* Fix
---------
Co-authored-by: a <alexanderklmn@gmail.com >
2025-10-12 23:37:24 +02:00
Hardik Pawar
297634d05f
refactor: Enhance docs, code, add tests in KaprekarNumbers ( #6747 )
...
Co-authored-by: a <alexanderklmn@gmail.com >
2025-10-12 23:13:14 +02:00
Hardik Pawar
ff9fd2e2e4
refactor: Enhance docs, code, add tests in Median ( #6751 )
...
Co-authored-by: a <alexanderklmn@gmail.com >
2025-10-12 22:51:54 +02:00
Hardik Pawar
74ddea6747
refactor: Enhance docs, code, add tests in KrishnaMurthyNumber ( #6742 )
...
* refactor: Enhance docs, code, add tests in `KrishnaMurthyNumber`
* Lint
2025-10-12 20:04:32 +00:00
Banula Kumarage
61fbb1855c
Dev: Add Zeller's Congruence utility class to calculate the day of the week ( #6614 )
...
* Add Zeller's Congruence utility class and unit tests
* fixed identified bugs
* fixed pmd failure
2025-10-09 20:36:20 +02:00
Ruturaj Jadhav
3c071c4e08
Added HappyNumber algorithm in maths section ( #6571 )
...
* Added HappyNumber algorithm in maths section
* Fix Checkstyle: remove trailing spaces in HappyNumber
* Fix formatting: remove trailing spaces and apply clang-format
* Update HappyNumberTest.java
* Removed old HappyNumbersSeq.java as replaced by new HappyNumber.java
2025-10-09 17:31:56 +00:00
Banula Kumarage
e788111420
Dev: Added Germain and Safe prime utility class ( #6611 )
...
* feat: add Germain and Safe prime utility class with unit tests
* refactor the code
* fixed identified bugs
* fixed identified remaining bugs
---------
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-10-09 17:28:06 +00:00
Saahil Mahato
061463a4df
feat: add sieve of atkin algorithm ( #6709 )
...
* feat: add sieve of atkin algorithm
* fix: add full test coverage
* refactor: if condition braces
---------
Co-authored-by: a <alexanderklmn@gmail.com >
2025-10-08 20:18:17 +02:00
Yash Rajput
b031a0bbba
Adding PiApproximation algo ( #6602 )
...
* Adding PiApproximation algo
* Added clang formatting
* Added private method
* checkstyle fix
* checkstyle fix
---------
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-10-08 12:16:14 +00:00
Saahil Mahato
9f985b2549
feat: add euler primality test ( #6680 )
...
* feat: add euler primality test
* refactor: use fixed seed
* fix: more unit test coverage
* fix: add mock tests for edge cases
* fix: styling issues
* refactor: remove duplicate tests
* refactor: reduce static imports
* refactor: remove unnecessary tests
* refactor: move to maths package
---------
Co-authored-by: a <alexanderklmn@gmail.com >
2025-10-06 20:23:32 +02:00
Banula Kumarage
6d5170999a
Dev: Added NumberPersistence utility class to find multiplicative and additive persistance ( #6612 )
...
* Add NumberPersistence utility class with multiplicative and additive persistence methods
* Fixed identified style issues
2025-10-04 12:55:26 +02:00
Sriram kulkarni
d8ddb07b7e
Added Sum of Squares Lagrange's Four Square algorithm implementation ( #6583 )
...
* Add Sum of Squares algorithm implementation
* Format code and add Wikipedia URL for Lagrange's theorem
* Fixed clang-format issues
---------
Co-authored-by: Oleksandr Klymenko <alexanderklmn@gmail.com >
2025-10-02 10:44:36 +03:00
Oleksandr Klymenko
31bf130e9e
refactor: improving Median ( #6404 )
...
refactor: improving Median
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-20 08:21:46 +00:00
Oleksandr Klymenko
a796f6dc41
testing: added unit tests for the BinaryPow.binPow ( #6386 )
...
testing: added unit tests for the BinaryPow.binPow
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-17 15:32:48 +00:00
Oleksandr Klymenko
440b6f5edf
testing: improve tests coverage AbsoluteValueTest ( #6385 )
...
testing: improve tests coverage AbsoluteValueTest
2025-07-17 17:29:45 +02:00
Oleksandr Klymenko
dd1a51b20f
testing: add more cases for AverageTest ( #6384 )
...
* testing: add more cases for AverageTest
* checkstyle: fix formatting
2025-07-16 15:10:22 +00:00
Oleksandr Klymenko
933e929b54
refactor: refactor Ceil and improved tests ( #6366 )
...
* refactor: refactor Ceil and improved tests
* checkstyle: remove redundant import
* refactor: fix edge cases
* refactor: fix checkstyle
* refactor: fix checkstyle import order
2025-07-14 07:47:22 +02:00
Oleksandr Klymenko
fa2ca9db39
refactor: improve PythagoreanTriple logic and add parameterized tests ( #6350 )
2025-07-08 00:29:52 +03:00
Piotr Idzik
7602f1ef4c
chore: suppress unchecked in selected classes ( #6262 )
2025-06-05 19:13:46 +03:00
Piotr Idzik
ec6f09c373
chore: suppress rawtypes in selected classes ( #6261 )
2025-06-05 14:23:28 +03:00
Hakim's Garage
769e4975f6
Add Parenthesis to MathBuilder ( #6193 )
2025-03-14 22:34:03 +02:00
Hakim's Garage
e6073f8fef
Add math builder ( #6190 )
2025-03-12 18:35:21 +02:00
varada610
4ef06822ca
Create package prime, matrix and games ( #6139 )
2025-01-27 11:10:41 +00:00
Muhammad Rizwan
0e0539ea6c
Fix AbsoluteMin bug for equal absolute values ( #6145 )
...
* fix-absolute-max-bug
* clang-format for added junit
* fix-absolute-min-bug
2025-01-19 17:50:43 +01:00
Muhammad Rizwan
30d0c064a7
Fix absolute max bug ( #6144 )
2025-01-18 21:51:56 +02:00
BILLSARAN
754bf6c5f8
Add Goldbach's Conjecture algorithm ( #6127 )
2025-01-13 23:37:58 +02:00
Stanislav Belogolov
14db275c2b
Improve Vampire Number ( #6110 )
2025-01-01 22:43:00 +00:00