// TOPIC

#dfs

7 articles

Beginner
01

Graphs: Everything Is Connected

Graphs model maps, social networks, and dependencies. Learn how nodes and edges work, how to represent them, and what BFS and DFS unlock.

#graphs#data-structures#bfs
10 min
◆◆IntermediateGoogleMeta
02

Graphs

Learn the graph data structure: adjacency lists vs matrices, BFS and DFS traversal, and the grid-as-graph reframe that cracks whole problem categories.

#graphs#data-structures#bfs
12 min
◆◆IntermediateAmazonMeta
03

Binary Trees and Traversals

Master binary tree traversal — inorder, preorder, postorder, and level-order — and the recursive mindset that makes dozens of tree problems click instantly.

#trees#binary-trees#traversals
12 min
◆◆IntermediateGoogleAmazon
04

Topological Sort

Order the nodes of a DAG so every edge points forward — the algorithm that drives build systems, package managers, course schedulers, and anything else that lives and dies by dependency ordering.

#graphs#dag#topological-sort
13 min
◆◆IntermediateMetaAmazon
05

Subsets, Permutations & Combinations

Generate subsets, permutations, and combinations with one choose/explore/un-choose backtracking template — and know exactly where 2^n and n! hit the wall.

#backtracking#recursion#combinatorics
14 min
◆◆IntermediateAmazonGoogle
06

DFS Patterns

Depth-first search is the backbone of cycle detection, flood fill, path enumeration, and clone graph — master the visited-set template, the 3-color trick, and when to reach for DFS over BFS.

#graphs#dfs#traversal
14 min
◆◆IntermediateGoogleMeta
07

Backtracking

Master the backtracking algorithm: the choose-explore-unchoose template, pruning that actually matters, and worked subsets, permutations, and N-queens.

#backtracking#recursion#combinatorics
11 min