Browse Source

update readme

master
alistair 4 years ago
parent
commit
c8dfa29e6a
  1. 7
      README.md
  2. 23
      notes.md

7
README.md

@ -6,3 +6,10 @@
[html](https://alistairmichael.com/notes/csse2002) [html](https://alistairmichael.com/notes/csse2002)
Pull requests are welcome. 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
```

23
notes.md

@ -1370,16 +1370,16 @@ students.stream()
The basic case of recursion is a function calls itself, reducing the size of 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. the problem at each subsequent call, to progress towards a base case.
```
function { function {
if (base case) { if (base case) {
return; return;
}
else (reduction cases) {
return function();
}
} }
else (reduction cases) {
return function();
}
}
```
This has the risk of stack overflows, because each call adds to the callstack. 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 Recursion is more elegant for some types of problems, which are naturally
@ -1435,4 +1435,9 @@ Visualisation Sites:
- [sorting.at](http://sorting.at) - [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.

Loading…
Cancel
Save