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:
NYAMATHABAD KOUSHIK SAI
2025-12-23 01:45:50 +05:30
committed by GitHub
parent 1eb0d61730
commit 2707da25e3
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
package com.thealgorithms.maths;
package com.thealgorithms.recursion;
public final class FactorialRecursion {
private FactorialRecursion() {

View File

@@ -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;