Python (Micro)

Master the small Python code shapes that combine into full algorithms and data-structure solutions.

Values & Types

Scripts, a sorted variable shelf, numeric behavior, sentinels, and type hints.

Lists & Grids

List construction, copying, mutation, matrices, and prefix accumulation.

Dictionaries & Sets

Lookup, counting, grouping, membership, and nested collections.

Control Flow

Branches, loop forms, comprehensions, two pointers, and sliding windows.

Functions & Recursion

Signatures, unpacking, closures, recursive base cases, and caching.

Classes & References

Bare nodes, linked structures, tries, dataclasses, protocols, and shared references.

Stacks & Queues

List-backed stacks, conditional deque operations, BFS frontiers, and monotonic deques.

Sorting & Searching

Key functions, deterministic tie-breakers, bisect helpers, and manual bounds.

Heaps & Union-Find

Separate min/max heap facets, priority tuples, and disjoint-set compression.

Graphs & Traversal

Adjacency lists, BFS, DFS, grid movement, indegrees, and topological order.

DP & Backtracking

Rolling state, memoized grids, mutable paths, snapshots, and undo steps.

Bits, Math & Strings

Masks, XOR, digit carry, Unicode, byte data, parsing, exceptions, and assertions.

Course checkpoint

Verify the compact Python forms used by algorithm and data-structure solutions.