0bb22fbc7d
Remove main function from GCD class ( #5828 )
2024-10-22 18:04:00 +00:00
ef72b1e40b
Remove main function, improve docstring, add JUnit tests for KrishnamurthyNumber
. ( #5881 )
2024-10-22 17:54:45 +00:00
9eff71bf05
Add tests for ConvolutionFFT
( #5767 )
2024-10-15 11:41:26 +00:00
8886e0996a
style: include OCP_OVERLY_CONCRETE_PARAMETER
( #5833 )
2024-10-14 23:46:28 +03:00
3af4cfd7c8
Add SumOfOddNumbers ( #5730 )
2024-10-14 23:02:40 +03:00
31de2db0ae
Add fast exponentiation algorithm ( #5715 )
2024-10-12 10:39:05 +03:00
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
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
bd9e324e8c
Add QuadraticEquationSolver and test cases ( #5619 )
2024-10-07 21:17:45 +00:00
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
27343e7aa8
fix: handle Null Dereference in NthUglyNumber
( #5469 )
2024-09-24 23:30:38 +05:30
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
d189c3a719
refactor: LeastCommonMultiple
( #5435 )
...
* refactor: LeastCommonMultiple
* checkstyle: fix formatting
---------
Co-authored-by: alxkm <alx@alx.com>
2024-08-30 08:43:45 +02:00
b231a72d44
refactor: NonRepeatingElement
( #5375 )
2024-08-24 16:08:22 +03:00
4e72056527
refactor: FindKthNumber
( #5374 )
2024-08-24 11:53:35 +03:00
84fb717509
test: DeterminantOfMatrix
( #5376 )
2024-08-24 11:38:16 +03:00
0301ecf1cb
refactor: Pow
( #5364 )
2024-08-23 11:59:20 +03:00
fb55552ebb
refactor: fix typo ( #5363 )
2024-08-23 10:58:08 +03:00
6f521145cc
Update Average.java ( #5309 )
...
* Update Average.java
- Made the constructor throw an UnsupportedOperationException to prevent instantiation, making it explicit that this is a utility class.
- Added a private validateInput method to handle validation, reducing code duplication and improving readability.
- Consistent exception messages and handling for both methods.
- Improved comments to be more descriptive and follow JavaDoc conventions.
- Enhanced code readability and maintained consistent formatting.
* Minor Update Average.java
* Change To Average.java
* Mnr Average.java
* Update_Average.java
* Fix Average.java
1. throw new IllegalArgumentException("Numbers array cannot be empty or null");
2. int --> double
* fix2.java
return(double)..
2024-08-04 23:45:54 +05:30
5840579885
style: include BigIntegerInstantiation
( #5294 )
2024-07-16 11:39:11 +03:00
96e59e063a
style: include DLS_DEAD_LOCAL_STORE
( #5276 )
2024-07-05 22:52:54 +03:00
74e51990c1
style: enable InvalidJavadocPosition
in checkstyle ( #5237 )
...
enable style InvalidJavadocPosition
Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com>
2024-06-18 19:34:22 +02:00
cdb3affdd9
style: enable AvoidNestedBlocks
in checkstyle ( #5228 )
...
* enable style AvoidNestedBlocks
* refactor after enable style AvoidNestedBlocks
* fix clang
* fix checkstyle
* fix pmd
---------
Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-06-14 16:57:30 +02:00
87b17e0571
style: enable NeedBraces
in checkstyle ( #5227 )
...
* enable style NeedBraces
* style: enable NeedBraces in checkstyle
---------
Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com>
2024-06-13 21:00:16 +02:00
f8698674b3
style: include IM_BAD_CHECK_FOR_ODD
( #5213 )
2024-06-13 10:07:14 +05:30
b315b7d578
style: include WMI_WRONG_MAP_ITERATOR
( #5206 )
2024-06-06 00:22:12 +05:30
2e387fe54e
style: include IMC_IMMATURE_CLASS_VAR_NAME
( #5197 )
2024-06-01 21:36:12 +00:00
c42b1c940c
style: enable ParameterName
in CheckStyle. ( #5196 )
...
* Enabled: ParameterName in CheckStyle.
* Refactored to fix bug caused by selfAssignment of variables in VectorCrossproduct class
2024-05-31 22:01:11 +02:00
25d711c5d8
style: enable LocalVariableName
in CheckStyle ( #5191 )
...
* style: enable LocalVariableName in checkstyle
* Removed minor bug
* Resolved Method Name Bug
* Changed names according to suggestions
2024-05-28 20:29:28 +02:00
92887a10c2
style: include NAB_NEEDLESS_BOXING_PARSE
( #5184 )
2024-05-28 06:47:51 +00:00
295e7436b1
style: enable MethodName
in CheckStyle ( #5182 )
...
enabled: MethodName in CheckStyle
2024-05-27 09:06:06 +02:00
ea4dc15a24
style: do not suppress try
( #5167 )
2024-05-27 03:02:36 +05:30
9eaa2bb756
style: enable MultipleVariableDeclarations
in checkstyle ( #5175 )
...
Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
2024-05-25 20:18:27 +02:00
160742104d
Enabled LocalFinalVariableName in Checkstyle ( #5172 )
2024-05-24 16:38:37 +05:30
0f42e995a4
style: enabled InnerAssignment
in checkstyle ( #5162 )
...
* style: enabled InnerAssignment in checkstyle
* Refactor code formatting in KnapsackMemoization.java and UnionFind.java
* style: remove redundant blank line
* style: mark `includeCurrentItem` and `excludeCurrentItem` as `final`
* style: remove `KnapsackMemoization` from `pmd-exclude.properties`
* style: use `final`
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-05-16 16:46:03 +00:00
319d5143cc
refactor: cleanup DudeneyNumber
( #5156 )
2024-05-12 14:35:33 +05:30
d3bb691f59
style: enable HideUtilityClassConstructor
in checkstyle ( #5147 )
2024-05-08 09:58:29 +03:00
414835db11
style: enable AvoidStarImport
in checkstyle ( #5141 )
2024-05-05 20:48:56 +02:00
b3903f5768
style: enable RedundantModifier
in checkstyle ( #5140 )
2024-05-03 22:10:49 +03:00
1e2d7e9431
style: enable ConstantName
in checkstyle ( #5139 )
...
Co-authored-by: Maria Paszkiewicz SCC <maria.paszkiewicz@kit.edu>
2024-05-02 18:31:37 +02:00
6de154d218
tests: add tests of Mode
( #5104 )
2024-04-26 06:40:01 +00:00
8129686e2e
Added tests for FactorialRecursion
( #5109 )
...
* Added tests for `FactorialRecursion`
* Apply suggestions from code review
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
---------
Co-authored-by: Maria Paszkiewicz SCC <maria.paszkiewicz@kit.edu>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-04-20 20:31:13 +02:00
7201dc78ad
Added tests for NumberOfDigits ( #5107 )
...
Co-authored-by: Maria Paszkiewicz SCC <maria.paszkiewicz@kit.edu>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-04-13 20:45:07 +02:00
ab371843ac
Close Scanner
to avoid resource leak ( #5077 )
2024-03-12 19:49:58 +01:00
8930ab5b16
Cleanup SumOfDigits
and its tests ( #4994 )
2024-01-05 23:05:52 +02:00
1ea95ffa92
Cleanup PerfectSquare
and its tests ( #4992 )
2024-01-04 12:56:48 +02:00
6a0c0585e4
Add cross-correlation and auto-correlation ( #4984 )
2024-01-03 20:11:07 +02:00
9bebcee5c7
Make sumOfDigits
long
in HarshadNumber.isHarshad
( #4973 )
...
fix: make `sumOfDigits` `long` in `HarshadNumber.isHarshad`
2023-11-30 22:06:31 +05:30
fc21a8bffe
Explicitly cast result of Math.pow
to long
in Armstrong
( #4972 )
2023-11-30 10:50:09 +02:00
9dde8a7808
Add MatrixRank
( #4571 )
...
* feat: adding matrix rank algorithm
* fix: formatting
* fix: adding comments, refactor and handling edge cases
* refactor: minor refactor
* enhancement: check matrix validity
* refactor: minor refactor and fixes
* Update src/main/java/com/thealgorithms/maths/MatrixRank.java
* feat: add unit test to check if input matrix is not modified while calculating the rank
---------
Co-authored-by: Anup Omkar <anup_omkar@intuit.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2023-10-25 15:34:05 +02:00