Graphs

DFS / BFS / Islands, Topological Sort, Union-Find, Shortest Paths.

1 min readInterview · DSA Patterns

Graphs are where interview difficulty ramps up. The four patterns here cover the bulk of graph problems you'll see at FAANG — connectivity, ordering, dynamic merging, and weighted shortest paths.

Finished reading?

Mark it done to track your progress in Interview.

On this page

No Headings