Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 350 Bytes

9.1.md

File metadata and controls

5 lines (3 loc) · 350 Bytes

(a) List. Since the sequence of the words need to be alphabetical, the container needs to support insert in the middle effeciently.

(b) Deque. The container needs to support insert/delete in the front and back effeciently.

(c) Vector. There is no need to use other containers. And to sort the numbers in container, random access is usually needed.