Learn C++ STL

Lesson 8 of 9 · array and deque: Fixed Size, and Growing at Both Ends

Module 4 · array and deque: Fixed Size, and Growing at Both Ends

Cheat Sheet: array and deque on One Page

ProReading

This page is the module on one sheet, for the moment before a contest or an interview. Every line here was taught, measured or run in lessons 01 to 06; nothing is new. Print it, or keep it open beside the editor.

Checking what this lesson needs for you…

What is inside Cheat Sheet: array and deque on One Page

  1. Declaring an array and a deque
  2. Every array operation and its cost
  3. Every deque operation and its cost
  4. The five patterns
  5. The deque invalidation rule, in three lines
  6. array, deque or vector
  7. The four traps

Module test

Ten questions on this module. Pass at 70%, and you can take it as many times as you like.

Take the module test