DOKICODE
Study room

Graph Algorithms

Graph problems describe things and the links between them, such as cities and roads, or courses and their prerequisites in Course Schedule. Once you can see the graph, most questions come down to a known algorithm.

The nine chapters cover traversal, topological sort, shortest paths, minimum spanning trees, Eulerian paths, strongly and biconnected components, bipartite coloring, network flow, and miscellaneous graph problems. It is the last plan on the route and assumes you are comfortable with recursion and BFS.

109 problemsRating 1383–30289 Chapters
Open the study room

Want company while you work through this list? Sign in, open the study room, and your heroine will bring you the problems one at a time.

I. Graph Traversal

II. Topological Sort

III. Shortest Paths

IV. Minimum Spanning Tree (MST)

V. Eulerian Path & Circuit

V. Eulerian Path & Circuit

ProblemRating
332. Reconstruct ItineraryUnrated
753. Cracking the Safe2274
2097. Valid Arrangement of Pairs2651

VI. Connected Components (SCC/BCC)

VII. Bipartite Coloring

VII. Bipartite Coloring

ProblemRating
785. Is Graph Bipartite1625
886. Possible Bipartition1795

VIII. Network Flow

IX. Miscellaneous Graph Algorithms

This is the final plan on the route; after its core sections, your heroine moves on to the advanced lists, where the optional sections from earlier plans wait.

Ratings come from zerotrac's LeetCode contest ratings. Some problems have no zerotrac rating and are marked Unrated.

Open the study room