Add recursive factorial implementation with tests#7178
Add recursive factorial implementation with tests#7178DenizAltunkapan merged 7 commits intoTheAlgorithms:masterfrom
Conversation
koushik-sai
commented
Dec 19, 2025
- Added a recursive implementation of factorial in the recursion package
- Followed utility-class pattern used across the repository
- Included JUnit tests for base cases, positive input, and negative input
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7178 +/- ##
=========================================
Coverage 78.90% 78.90%
Complexity 6864 6864
=========================================
Files 772 772
Lines 22697 22697
Branches 4459 4459
=========================================
Hits 17908 17908
Misses 4073 4073
Partials 716 716 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
there already exists a recursive implementation @koushik-sai https://github.com/TheAlgorithms/Java/blob/master/src/main/java/com/thealgorithms/maths/FactorialRecursion.java . |
|
Thanks for the suggestion 👍 |
DenizAltunkapan
left a comment
There was a problem hiding this comment.
Thank you @koushik-sai