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
- Declaring an array and a deque
- Every array operation and its cost
- Every deque operation and its cost
- The five patterns
- The deque invalidation rule, in three lines
- array, deque or vector
- 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