From 0eb1abd26d4080c2c8f744297bacd556a9eec80a Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 8 Mar 2020 00:23:28 -0800 Subject: [PATCH] Add note about n being zero to stack post --- content/blog/stack_recursion.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/blog/stack_recursion.md b/content/blog/stack_recursion.md index 5f807f5..7b99e3e 100644 --- a/content/blog/stack_recursion.md +++ b/content/blog/stack_recursion.md @@ -261,7 +261,12 @@ As before, we push the desired answer onto the stack: {{< stack >}} {{< stack_element >}}{{< /stack_element >}} {{< stack_element >}}1{{< /stack_element >}} - {{< stack_element >}}\(n\){{< /stack_element >}} + {{< stack_element >}} + {{< sidenote "right" "zero-note" "\(n\)" >}} + At this point, we know that \(n\) is equal to 0. However, for the sake of consistency, + and to avoid confusion, I do not substitute 0 here. + {{< /sidenote >}} + {{< /stack_element >}} {{< stack_element >}}factorial{{< /stack_element >}} {{< /stack >}}