From 87a1d8e96dc717356545c772a71796fccaa6d5dd Mon Sep 17 00:00:00 2001 From: Jet Hughes Date: Fri, 5 Aug 2022 14:17:57 +1200 Subject: [PATCH] vault backup: 2022-08-05 14:17:57 --- content/notes/08-intro-to-c.md | 2 +- content/notes/analysis-of-recursive-algorithms.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/notes/08-intro-to-c.md b/content/notes/08-intro-to-c.md index b1e39ab65..0af3d2528 100644 --- a/content/notes/08-intro-to-c.md +++ b/content/notes/08-intro-to-c.md @@ -54,7 +54,7 @@ int main(int argc, const char *argv[]) ``` routines can be scoped to just the source code file -- `statis int eleven(void` +- `static int eleven(void` routines must be declared bfore being used - `extern int eleven(void):` diff --git a/content/notes/analysis-of-recursive-algorithms.md b/content/notes/analysis-of-recursive-algorithms.md index 205c7c52a..fdb583034 100644 --- a/content/notes/analysis-of-recursive-algorithms.md +++ b/content/notes/analysis-of-recursive-algorithms.md @@ -41,7 +41,7 @@ in the recirsive case, since all the elements before $p$ are smaller than it and def fib(n) if n <= 1 return 1 - return fib(n-1) + fib(n-2) + return fib(n-1) + fib(n-2) ``` line 1 -> always executed