mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
Add recursive factorial implementation with tests (#7178)
* Add recursive factorial implementation with tests * [STYLE] Apply clang-format * Move recursive factorial to recursion package and remove duplicate * Move recursive factorial to recursion package and remove duplicate * Apply clang-format to factorial recursion tests * Apply clang-format to factorial recursion tests --------- Co-authored-by: Koushik Sai <nyamathabadkoushik@gmail.com> Co-authored-by: Deniz Altunkapan <deniz.altunkapan@outlook.com>
This commit is contained in:
committed by
GitHub
parent
1eb0d61730
commit
2707da25e3
@@ -1,4 +1,4 @@
|
||||
package com.thealgorithms.maths;
|
||||
package com.thealgorithms.recursion;
|
||||
|
||||
public final class FactorialRecursion {
|
||||
private FactorialRecursion() {
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.thealgorithms.maths;
|
||||
package com.thealgorithms.recursion;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
Reference in New Issue
Block a user