From 043edc23ce0b0f588d95fcbf19887b8eea34d487 Mon Sep 17 00:00:00 2001 From: Ram Basnet Date: Thu, 7 Nov 2024 20:28:57 -0700 Subject: [PATCH] update Ch13 --- notebooks/Ch13-Recursion.ipynb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/notebooks/Ch13-Recursion.ipynb b/notebooks/Ch13-Recursion.ipynb index 53cdb86..b0c1b24 100644 --- a/notebooks/Ch13-Recursion.ipynb +++ b/notebooks/Ch13-Recursion.ipynb @@ -165,12 +165,13 @@ "metadata": {}, "source": [ "### Factorial definition\n", + "\n", "```\n", - " 0! = 1 (base case)\n", - " n! = n.(n-1)! for n >= 1 (general case)\n", + " 1! = 1 (base case)\n", + " n! = n.(n-1)! for n > 1 (general case)\n", "```\n", - "- Exercise - Implement factorial recursive solution\n", - " - left as an exercise" + "\n", + "- Exercise - Implement factorial recursive solution" ] }, {