feat(08): remove recursive solution (#457)

Not appropriate to expose learners to at this point in the curriculum
This commit is contained in:
Nikita Revenco
2024-05-03 02:13:38 +01:00
committed by GitHub
parent 1afbcf8644
commit 930673d9c8
@@ -27,15 +27,6 @@ const factorial = function (n) {
return product;
};
// This is another implementation of Factorial that uses recursion
// THANKS to @ThirtyThreeB!
const recursiveFactorial = function (n) {
if (n === 0) {
return 1;
}
return n * recursiveFactorial(n - 1);
};
module.exports = {
add,
subtract,