More chapter 2 work.

This commit is contained in:
2018-02-08 08:38:06 -08:00
parent acbb50d43c
commit e0d8dc0171
6 changed files with 81 additions and 28 deletions

View File

@@ -12,4 +12,10 @@ These data structures have common advantages and limitations:
array requires shifting all the following elements.
With some careful management, the additional *amortised* complexity added by
resizing isn't too bad.
resizing isn't too bad.
## Array stack
* Uses backing array *a*.
* Typically, the array will be larger than necessary, so an element *n* is
used to track the actual number of elements stored in the stack.