Skip to content

Commit

Permalink
update 11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooophy committed Oct 22, 2015
1 parent fe74f3c commit 321301f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ch11/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
## Exercise 11.2:
>Give an example of when each of list, vector, deque, map, and set might be most useful.
- list : a to-do list. always need insert or delete the elements anywhere.
- vector : save some important associated data, always need query elements by index.
- deque : message handle. FIFO.
- list : anytime when a doubly-linked list is required.
- vector : anytime when a dynamic array is required.
- deque : [An answer from SO](http://stackoverflow.com/questions/3880254/why-do-we-need-deque-data-structures-in-the-real-world).
- map : dictionary.
- set : bad_checks.
- set : when to keep elements sorted and unique.

## [Exercise 11.3 and 11.4](ex11_3_4.cpp)

Expand Down

0 comments on commit 321301f

Please sign in to comment.