Abhinav Pandey
152e29034d
Improved code readability and code quality ( #4663 )
...
* Fixed Small typos :-)
* Update BufferedReader.java
* Made the following changes :
* Improved readability of files and removed gramatical errors.
* Implemented data assigning instead of manually calling arr.ylength in several instances like FindMax, FindMaxRecursion etc.
* Removed unwanted params from several files
* Implemented Math methods in files math/FindMinRecursion.java and FindMaxRecursion.java
* Update src/main/java/com/thealgorithms/maths/FindMinRecursion.java
---------
Co-authored-by: Debasish Biswas <debasishbsws.dev@gmail.com >
2023-10-11 17:29:55 +05:30
Lukas
17fe4298b6
Add MaxValueTest and remove main from MaxValue ( #4756 )
...
* Create MaxValueTest.java
* Update MaxValue.java
2023-10-10 21:27:23 +02:00
Lukas
c6a22de12f
Add MinValueTest and remove main from MinValue ( #4713 )
...
* Update MinValue.java
* Create MinValueTest.java
* Revert "Create MinValueTest.java"
* Create MinValueTest.java
* Update MinValueTest.java
* Update MinValueTest.java
* Update MinValue.java
* Update src/test/java/com/thealgorithms/maths/MinValueTest.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update src/test/java/com/thealgorithms/maths/MinValueTest.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update src/main/java/com/thealgorithms/maths/MinValue.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
2023-10-09 17:17:02 +02:00
Lukas
064ca8f591
cleanup FindMinRecursion ( #4568 )
...
* Create FindMinRecusionTest.java
* Update FindMinRecursion.java
* Update FindMinRecursion.java
* Update FindMinRecursion.java
* Rename FindMinRecusionTest.java to FindMinRecursionTest.java
* Update FindMinRecursionTest.java
* style: remove unused imports
---------
Co-authored-by: vil02 <65706193+vil02@users.noreply.github.com >
2023-10-05 22:01:27 +02:00
Appari Satya Barghav
a3a2d845d5
Made changes to the code to correct the Logic of Armstrong Number ( #4619 )
...
* Made changes to the code to correct the Logic of Armstrong Number
* Resolved the issues
* Trying to resolve the Linter error by changing Variable name
* Changed Variable Names : trying to resolve Clang error
2023-10-04 20:02:49 +05:30
Lukas
8dc5505323
Add FindMaxRecursionTest ( #4431 )
...
* Update FindMaxRecursion.java
* Create FindMaxRecusionTest.java
* Update and rename FindMaxRecusionTest.java to FindMaxRecursionTest.java
* Update FindMaxRecursion.java
* Update FindMaxRecursion.java
* Update src/test/java/com/thealgorithms/maths/FindMaxRecursionTest.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update src/test/java/com/thealgorithms/maths/FindMaxRecursionTest.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update src/main/java/com/thealgorithms/maths/FindMaxRecursion.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update FindMaxRecursion.java
* Update FindMaxRecursionTest.java
* Update FindMaxRecursionTest.java
* Update FindMaxRecursion.java
* Update src/main/java/com/thealgorithms/maths/FindMaxRecursion.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update FindMaxRecursion.java
* Update FindMaxRecursion.java
* Update FindMaxRecursion.java
* Update FindMaxRecursion.java
* Update FindMaxRecursion.java
* Update src/main/java/com/thealgorithms/maths/FindMaxRecursion.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
2023-10-01 18:21:29 +00:00
Bharath Sanjeevi T
37b3844b98
Add SecondMinMax ( #4432 )
...
* Added Second Min/Max program
* Clang-format-lint error resolved
* Clang-format-error 2
* Added Program to find Second Minimum/Maximum element
* Test File & few changes
* Clang-lint-error resolved
* Maven Build Error Resolved
* Clang-lint-error resolved
* Clang-lint-error resolved 2
* Changes Resolved
* Test Arguements are Streamed
* Clang-lint-error resolved
* incresed code reusability
* Added Program to find Second Min / Max
* Program to find Second Min / Max
* Program to find Second Minimum / Maximum
* Program to find Second Best Number
* style: mark `initialVal` as `final`
* style: resolve `MultipleVariableDeclarations`
Each variable declaration must be in its own statement.
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
2023-10-01 15:28:37 +00:00
Lukas
bf777fff8f
Remove array len + Math.min ( #4405 )
2023-09-26 18:31:16 +03:00
Lukas
cada67b1eb
Remove array len + Math.max ( #4401 )
2023-09-25 19:10:04 +00:00
Piotr Idzik
d6024f9cd4
Make FindMin a proper utilty class ( #4397 )
2023-09-24 10:25:28 +00:00
Piotr Idzik
fa77b50ef9
style: make FindMax a proper utilty class ( #4398 )
2023-09-24 13:55:19 +05:30
Lukas
ad4be217d4
Update FindMax.java ( #4396 )
2023-09-24 09:11:36 +02:00
Lukas
c1476d796c
Make FindMin more efficient ( #4389 )
2023-09-24 06:26:05 +00:00
Piotr Idzik
58c21c5756
refactor: simplify ParseInteger ( #4376 )
2023-09-16 21:57:03 +03:00
Abhinav Pandey
81f38174a6
Fix small typos ( #4357 )
2023-09-08 16:10:22 +03:00
Punit Patel
a96ad84fac
Add different types of Mean ( #4339 )
2023-09-02 17:22:28 +00:00
Piotr Idzik
f010a47608
chore: enforce InsertNewlineAtEOF in clang-format ( #4343 )
...
* style: insert newline at eof
* style: use `InsertNewlineAtEOF` in `clang-format`
* fix: use `clang-format-16`
* chore: update clang-format-lint-action to v0.16.2
---------
Co-authored-by: Debasish Biswas <debasishbsws.dev@gmail.com >
2023-09-01 04:10:46 +00:00
Bama Charan Chhandogi
80a4435038
Add tests for power using recursion algorithm ( #4335 )
2023-08-28 07:03:27 +00:00
tomkrata
ebd356e182
Add Miller-Rabin Primality Test ( #4329 )
2023-08-27 20:07:27 +00:00
Himesh Kohad
07945c7704
Add StrobogrammaticNumber ( #4278 )
2023-08-11 12:22:14 +00:00
Piotr Idzik
c4a9ef1566
Add PowerOfTwoOrNotTest ( #4279 )
2023-08-04 12:31:47 +00:00
Piotr Idzik
ee23b6c2e5
Add tests for GenericRoot ( #4276 )
2023-08-03 23:14:59 +03:00
Piotr Idzik
087d523ed0
Make Factorial a proper utility class ( #4267 )
2023-07-29 08:15:03 +03:00
Albina Gimaletdinova
f83008d80a
Refactor factorial, add unit tests ( #4266 )
2023-07-28 22:02:04 +03:00
Albina Gimaletdinova
fc274c84f8
Fix style in AmicableNumbers ( #4263 )
2023-07-26 16:52:46 +03:00
Albina Gimaletdinova
dec3b98e4b
Refactor FibonacciJavaStreams and add unit tests ( #4260 )
2023-07-25 22:42:09 +03:00
Piotr Idzik
3c80e262a7
Update ReverseNumber ( #4257 )
...
- removes an unused import,
- fixes the order of the of the _modifiers_ in the definition of the class `ReverseNumber`.
2023-07-25 14:14:59 +08:00
Piotr Idzik
06ef351987
Add tests for SumOfArithmeticSeries ( #4256 )
2023-07-24 19:25:40 +03:00
Piotr Idzik
e897a93166
Fix formatting of NthUglyNumber ( #4248 )
2023-07-23 11:16:35 +00:00
HManiac74
2488a2ad51
Code cleanup ( #4246 )
2023-07-22 15:23:00 +00:00
Albina Gimaletdinova
2456d86432
Add unit tests for ParseInteger ( #4228 )
2023-07-02 11:31:55 +03:00
Albina Gimaletdinova
4b45ac7e71
Add unit tests for PalindromeNumber ( #4227 )
2023-07-01 18:29:10 +00:00
Albina Gimaletdinova
8862a4dea5
Add unit tests for FibonacciNumberCheck ( #4225 )
2023-07-01 20:52:52 +03:00
THIRUMURUGAN
05ca93eace
Rename surfaceAreaTriangle for clarity ( #4220 )
2023-06-23 19:39:10 +03:00
acbin
415a04ea7f
Add automatic linter ( #4214 )
2023-06-09 20:05:14 +08:00
acbin
00282efd8b
style: format code ( #4212 )
...
close #4204
2023-06-09 18:52:05 +08:00
Piotr Idzik
22002c9939
Generalize NthUglyNumber ( #4209 )
2023-06-02 14:17:26 +03:00
Piotr Idzik
4bbc4bd69f
Refactor ReverseNumber ( #4208 )
2023-05-31 09:07:55 +03:00
Piotr Idzik
96c1a96647
Fix empty input handling in FindMax ( #4206 )
2023-05-28 23:45:13 +03:00
Piotr Idzik
4f15149804
style: handle empty input array in FindMin.findMin ( #4205 )
...
* tests: add test case with mininum not being at the beginning
* style: throw IllegalArgumentException when input is empty
* style: use enhanced for loop
* docs: update doc-str
2023-05-28 16:38:44 +05:30
Piotr Idzik
e14b30b88c
Fix empty input handling in GCD ( #4199 )
2023-05-27 17:58:56 +03:00
Indrranil Pawar
9ce275c16d
Update FibonacciNumber.java ( #4195 )
2023-05-21 11:08:54 +05:30
Anirudh Pathak
de2696d0c5
Add Null/Empty check for param in average method ( #4185 )
2023-05-10 19:30:41 +03:00
Saurabh Rahate
1dc388653a
Refactor Code Style ( #4151 )
2023-04-15 11:25:54 +03:00
Volodymyr Labliuk
7779c18ef6
Add More Tests ( #4148 )
2023-04-08 19:56:07 +03:00
duyuanch
d160156003
Update AbsoluteMax ( #4140 )
2023-04-03 22:39:17 +08:00
Saurabh Rahate
ad72c28d91
Remove unnecessary code ( #4141 )
2023-04-03 22:35:59 +08:00
Isak Einberg
3b2ca81765
Fix spelling in Volume ( #3893 )
2023-03-24 19:22:56 +00:00
a-kbd
dd949e9b5d
Increase test coverage ( fixes #3895 #3896 ) ( #3897 )
2023-03-05 21:03:08 +02:00
Siddhant Swarup Mallick
87f9ebcb29
Add Frizzy Number ( fixes #3379 ) ( #3906 )
2023-03-01 17:16:32 +02:00