Module M04 · 4 of 35 in teaching order · Beginner

Built-in Collections

The collections every language ships, what each operation costs, and how to choose one.

Lessons

  1. A decision guide to the built-in collections: what each operation costs, which type to pick for position, key, membership, ends, order or priority, per language.

  2. How collections are traversed, what happens if you modify them mid-loop, and the equality, hashing and ordering rules your keys must follow in C#, Python, Java and C++.

  3. Sort once, sorted array, balanced tree or heap: which ordered structure each task needs, what it costs, and the sorted maps, sets and heaps of C#, Python, Java and C++.

Topics this module covers

The full module scope. Topics without a lesson above are not written yet.

  • arrays
  • dynamic arrays
  • lists
  • stacks
  • queues/deques
  • maps/sets
  • sorted collections
  • priority queues
  • iterators
  • equality/hashing
  • comparators
  • selection

Builds toward