diff --git a/README.md b/README.md index 25f3858..13cb0d9 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,10 @@ [html](https://alistairmichael.com/notes/csse2002) Pull requests are welcome. + +## Building + +``` +pandoc notes.md --toc --template template.latex -o notes.pdf +pandoc notes.md -s --css style.css --toc -o notes.html --template template.html --self-contained +``` diff --git a/notes.md b/notes.md index 19178c2..0309ef1 100644 --- a/notes.md +++ b/notes.md @@ -1370,16 +1370,16 @@ students.stream() The basic case of recursion is a function calls itself, reducing the size of the problem at each subsequent call, to progress towards a base case. - - function { - if (base case) { - return; - } - else (reduction cases) { - return function(); - } +``` +function { + if (base case) { + return; } - + else (reduction cases) { + return function(); + } +} +``` This has the risk of stack overflows, because each call adds to the callstack. Recursion is more elegant for some types of problems, which are naturally @@ -1435,4 +1435,9 @@ Visualisation Sites: - [sorting.at](http://sorting.at) +# Contributing + +Source for this page is available +[here](https://git.topost.net/alistair/csse2002-notes/src/branch/master). +Contributions are welcome.