From 930673d9c89a0daa8b4f16e8fa3337a930867f49 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+nikitarevenco@users.noreply.github.com> Date: Fri, 3 May 2024 02:13:38 +0100 Subject: [PATCH] feat(08): remove recursive solution (#457) Not appropriate to expose learners to at this point in the curriculum --- 08_calculator/solution/calculator-solution.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/08_calculator/solution/calculator-solution.js b/08_calculator/solution/calculator-solution.js index b195387..4848d86 100644 --- a/08_calculator/solution/calculator-solution.js +++ b/08_calculator/solution/calculator-solution.js @@ -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,