listcontainer
Python's built-in growable array of object references: O(1) indexing and amortized O(1) append at the end.
Python's built-in growable array of object references: O(1) indexing and amortized O(1) append at the end.
Python's built-in hash table from hashable keys to values, with average O(1) operations and guaranteed insertion order.
Python's built-in hash set of unique hashable elements with average O(1) membership and operators for set algebra.
A double-ended queue with O(1) appends and pops at both ends; the standard queue and stack in Python.
Functions that keep a plain list in min-heap order: O(log n) push and pop, O(1) peek at heap[0].