Skip to content

Commit 087d523

Browse files
authored
Make Factorial a proper utility class (#4267)
1 parent f83008d commit 087d523

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/thealgorithms/maths/Factorial.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package com.thealgorithms.maths;
22

3-
public class Factorial {
3+
public final class Factorial {
4+
private Factorial() {
5+
}
6+
47
/**
58
* Calculate factorial N using iteration
69
*

0 commit comments

Comments
 (0)