Commit Graph

59 Commits

Author SHA1 Message Date
gijsh21
bbe6f9410c
Apply suggestions from code review
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
2020-08-20 15:25:10 +02:00
gijsh21
cccc898ba1
Create Mode.java
For finding the mode of an array of numbers
2020-08-20 11:18:36 +02:00
rabbit
94a65964d8 Update Average.java
1. add int type array
2. The equality of floating-point numbers should be judged by the absolute value of the difference less than a small number
2020-08-18 09:50:59 +08:00
rabbit
9486101fb6 Revert "Create FindAverage.java"
This reverts commit 5070a0bb28.
2020-08-18 09:41:32 +08:00
rabbit
5070a0bb28 Create FindAverage.java
add a findAverage java file in maths directory
2020-08-17 11:16:11 +08:00
Stepfen Shawn
ea43d70f3e
Merge pull request #1417 from rbshealy/master
Add PythagoreanTriple.java and Add assert statements
2020-08-16 23:22:54 +08:00
Ray S
9a31b960ff
Fix array initialization 2020-08-16 11:21:16 -04:00
Ray S
ae5536bddc
Fix array initialization 2020-08-16 11:20:38 -04:00
shellhub
b4839c2c07 Added SumOfDigits 2020-08-16 23:04:34 +08:00
Ray
16057164a6 Add assert statement 2020-08-16 10:46:39 -04:00
Ray
918189ec20 Add PythagoreanTriple.java 2020-08-16 10:32:10 -04:00
shellhub
1420e2d851 * add LucasSeries
* add PerfectCube
* PerfectSquare
2020-08-16 21:16:08 +08:00
shellhub
96345ad634 * factorial using using iteration
* add ceil() to maths
* add combinations() to maths
* add floor() to maths
2020-08-16 19:58:48 +08:00
shellhub
3e169010fe add average 2020-08-16 13:58:14 +08:00
shellhub
5e6c5a3861 Calculate area of various geometric shapes 2020-08-16 13:34:48 +08:00
shellhub
f2b50c0e6c duplicate with NumberOfDigits.java 2020-08-16 11:55:25 +08:00
shellhub
22e2e74bf8 add NumberOfDigits 2020-08-12 22:53:08 +08:00
shellhub
6079b4bc10 * reduce code
* add function overriding
* update test
2020-08-10 16:52:06 +08:00
Stepfen Shawn
de4b2be8af
Use public class 2020-07-31 11:44:09 +08:00
Utsav1999
7f944d93dd updated with Maths package 2020-07-26 21:36:19 +05:30
Utsav1999
da29549d67 updated with Maths package 2020-07-26 21:32:32 +05:30
Utsav1999
ce5ca17381 Update for zero and negative numbers 2020-07-26 01:31:34 +05:30
Utsav1999
e68334330e Added Count Digit program 2020-07-25 21:49:11 +05:30
lollerfirst
7179718df2
Update ParseInteger.java
Fixed error for empty string.
2020-06-09 08:40:46 +02:00
Maria Lungeanu
a5f42e293b Fixed Error:(6, 8) java: class algorithm is public, should be declared in a file named algorithm.java. Inside file PrimeFactorization, the name of public class was wrong. 2020-05-25 00:21:28 +03:00
Maria Lungeanu
63e5ce4c8f Fixed Error:(6, 8) java: class algorithm is public, should be declared in a file named algorithm.java. Inside file PrimeFactorization, the name of public class was wrong. 2020-05-14 19:36:06 +03:00
Stepfen Shawn
bcf808a238
Update VampireNumber.java 2020-05-12 17:01:38 -05:00
Stepfen Shawn
cce363d6ef
Merge pull request #1251 from wendelllsc/patch-1
Using Try/catch and recursion
2020-05-11 22:53:24 +08:00
Stepfen Shawn
4deae1ec3b
Merge pull request #1301 from BenSchokoRiegel/master
Implementing AmicableNumber and VampireNumbers in the Math class
2020-05-11 11:20:18 +08:00
Vikrant khedkar
f6d67253e3
Added indentation in the "main" function statement block 2020-05-08 10:38:05 +05:30
Vikrant Khedkar
f44f2c176b added comment in front of main method 2020-05-07 20:28:31 +05:30
Vikrant Khedkar
1c062e2c7a added scanner in factorail program 2020-05-07 19:30:58 +05:30
ben
082f104978 Finish both AmicableNumbers and VampireNumbers 2020-05-05 00:15:17 +02:00
ben
e59fc81075 Finish both AmicableNumbers and VampireNumbers 2020-05-05 00:13:08 +02:00
VTolas
d41fc15257
Create PrimeFactorization.java 2020-05-04 20:42:16 +02:00
Wendell Lucas
e5ad1f2ef0
Using Try/catch and recursion
Adding try/catch and recursion to optimize the code
2020-03-17 23:05:27 -03:00
Hassan
a1f59c38b1 Closing scanners. 2020-01-28 18:34:52 +02:00
Hassan
4f45c5a479 Fixing packages. 2020-01-28 18:18:15 +02:00
Arogon1
79d29c0bd3 Comment revisions 2019-12-10 23:35:54 -05:00
Yang Libin
e08408ca11
fix: update FindMin and fix #1170 2019-11-19 16:40:29 +08:00
shellhub
e141a33fa7 FibonacciNumber 2019-10-29 12:40:39 +08:00
Yang Libin
a2eec0243e
Merge pull request #1122 from UntouchedOdin0/patch-1
Update FindMin.java
2019-10-24 14:27:23 +08:00
shellhub
d11b7347b6 using recursion 2019-10-24 11:54:37 +08:00
UntouchedOdin0
6252b4eff8
Update FindMin.java
Re-word the comments
2019-10-23 21:22:14 +01:00
shellhub
56e887213b add pow 2019-10-23 21:42:04 +08:00
shellhub
f1ad7a1bbf parseInteger 2019-10-21 21:57:10 +08:00
Yang Libin
f6ca5e3412
Merge pull request #1016 from shellhub/feature-1
perfect number
2019-10-11 18:03:39 +08:00
shellhub
58b9f0bb0c perfect number 2019-10-11 18:00:37 +08:00
shellhub
58eb2ec581 PalindromeNumber 2019-10-11 16:39:55 +08:00
shellhub
856dd0644d update gcd 2019-10-08 12:40:54 +08:00