10 — BFS Pattern
Purpose
[stub: bfs-pattern]
Metadata
| Author | Amit Singh |
| Scope | data-structures-algorithms |
Local graph
Related notes
1 — Two Pointers Pattern
Recognizing when a problem's brute-force nested loop collapses to a single pass with two coordinated pointers.
11 — Tree DFS Pattern
Recognizing tree problems that reduce to a DFS template carrying a small amount of state root-to-leaf.
12 — Graph Pattern
Recognizing problems phrased as text/grid/relationship data that are actually graph traversal or connectivity in disguise.
13 — Dynamic Programming Pattern
Recognizing optimal-substructure-plus-overlapping-subproblems phrasing that signals memoization or tabulation over brute force.