Make Factorial a proper utility class (#4267)

This commit is contained in:
Piotr Idzik 2023-07-29 07:15:03 +02:00 committed by GitHub
parent f83008d80a
commit 087d523ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,9 @@
package com.thealgorithms.maths;
public class Factorial {
public final class Factorial {
private Factorial() {
}
/**
* Calculate factorial N using iteration
*