More chapter 2 work.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user