Functions, recursion and recurrence
Function definition and invocation · Parameter passing: by value, by reference, by pointer · Variable scope · Recursion · Recurrence
Try this self-check: Write a function with parameters and a return value, then trace a recursive call: where does it stop and how do values return?
Grids, search and reachability
Multidimensional arrays · Depth-first search · Breadth-first search · Flood fill algorithm
Try this self-check: Use a small grid to check visited states, bounds and repeated visits, then explain the exploration order of DFS and BFS.
Prefix counting and differences
Prefix sums and difference arrays
Try this self-check: Build prefix sums for a short array, check both endpoints, and compare repeated traversal with preprocessed range queries.