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
Strange Developer
df0c997e4b
General performance improvement ( #6078 )
2024-11-01 19:52:42 +02:00
Muhammad Junaid Khalid
d1c1e6b4d2
Add uniform number counting algorithm ( #6052 )
2024-10-29 17:46:29 +00:00
Taranjeet Singh Kalsi
921821214f
Add a new method to check Perfect Square ( #5917 )
2024-10-26 11:30:33 +00:00
Taranjeet Singh Kalsi
95875b0ae4
Add another method to find kth number ( #5918 )
2024-10-26 11:26:01 +00:00
Taranjeet Singh Kalsi
871e4df0d9
Add another method to check Pronic number ( #5919 )
2024-10-26 11:19:16 +00:00
UTSAV SINGHAL
1577ec4e62
Add Catalan number ( #5846 )
2024-10-26 10:10:20 +00:00
Ayush Kumar
3b2ba488bb
Add chinese remainder theorem ( #5873 )
2024-10-25 17:51:31 +00:00
Tanmay Singh
0bb22fbc7d
Remove main function from GCD class ( #5828 )
2024-10-22 18:04:00 +00:00
Tanmay Singh
ef72b1e40b
Remove main function, improve docstring, add JUnit tests for KrishnamurthyNumber. ( #5881 )
2024-10-22 17:54:45 +00:00
Hardik Pawar
7e11e9bb82
Add tests for EulerMethod ( #5769 )
2024-10-15 15:01:06 +03:00
Hardik Pawar
9eff71bf05
Add tests for ConvolutionFFT ( #5767 )
2024-10-15 11:41:26 +00:00
Byte Bender
3af4cfd7c8
Add SumOfOddNumbers ( #5730 )
2024-10-14 23:02:40 +03:00
Hardik Pawar
9c76b30271
Add tests for Convolution ( #5766 )
2024-10-14 11:55:15 +03:00
Saahil Mahato
31de2db0ae
Add fast exponentiation algorithm ( #5715 )
2024-10-12 10:39:05 +03:00
Saahil Mahato
1c978c52f1
feat: add karatsuba multiplication ( #5719 )
...
* feat: add karatsuba multiplication
* fix: fallback size
* fix: big integer instances
---------
Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com >
2024-10-11 14:13:51 +00:00
Saahil Mahato
79544c81eb
feat: add solovay strassen primality test ( #5692 )
...
* feat: add solovay strassen primality test
* chore: add wikipedia link
* fix: format and coverage
* fix: mvn stylecheck
* fix: PMD errors
* refactor: make random final
---------
Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com >
2024-10-10 23:41:58 +03:00
Sailok Chinta
bd9e324e8c
Add QuadraticEquationSolver and test cases ( #5619 )
2024-10-07 21:17:45 +00:00
Ahmed Elazab
7c56a734e9
Add Volume "Algorithm Frustum Of Cone" Then Test It. ( #5479 )
...
* Add Function volumeFrustum To Calculate Frustum Of Cone Then Test It.
* Add Function volumeFrustumOfCone To Calculate Frustum Of Cone Then Test It.
* Update VolumeTest.java
* Update Volume.java
2024-09-30 23:24:24 +05:30
Alex Klymenko
fa2231788f
fix: FindKthNumberTest ( #5444 )
...
refactor: fix FindKthNumberTest
2024-09-08 22:25:13 +02:00
Wole Jr.
175c84673a
Added an edge case for AbsoluteMax ( #5441 )
...
* Added an edge case to test
* Fixed linting on added test
2024-09-03 20:41:30 +05:30
Alex Klymenko
b0de93b3ce
refactor: change packages ( #5430 )
...
* refactor: change package
* refactor: fix name
---------
Co-authored-by: alxkm <alx@alx.com >
2024-08-30 11:58:24 +02:00
Alex Klymenko
d189c3a719
refactor: LeastCommonMultiple ( #5435 )
...
* refactor: LeastCommonMultiple
* checkstyle: fix formatting
---------
Co-authored-by: alxkm <alx@alx.com >
2024-08-30 08:43:45 +02:00
Alex Klymenko
e5c0e4bff0
test: cleanup PrimeFactorizationTest ( #5382 )
2024-08-25 09:56:02 +03:00