leaps.ggTRACK YOUR MASTERY →
PROBLEMS/GRAPHS/TOPOLOGICAL SORT

Topological Sort Problems

25 Topological Sort problems on LeetCode, a Graphs interview pattern, ranked by importance (how often it comes up in real interviews). Difficulty (ELO) and importance shown per problem.

#PROBLEMDIFFELOIMPPATTERNS
1Course ScheduleMedium141492
2Course Schedule IIMedium150390
3Alien DictionaryPREMIUMHard184288
BFS Shortest Path (Unweighted) · Frequency Counting / Hash Map Lookup
4Minimum Height TreesMedium174882
BFS Shortest Path (Unweighted)
5Build a Matrix With ConditionsHard196182
Matrix Traversal (Diagonal, Valid Sudoku, etc)
+ 20 more Topological Sort problems, see all in the explorer →
MORE GRAPHS PATTERNS
BFS Shortest Path (Unweighted)Multi-Source BFSDFS Connected ComponentsDFS Path FindingUnion-FindTopological Sort
// your mastery
Bronze tier crystalSilver tier crystalGold tier crystalPlatinum tier crystalDiamond tier crystal
What's your Topological Sort tier?

leaps.gg syncs your LeetCode history, scores your Topological Sort mastery, and recommends exactly which problems to do next with spaced repetition. Free to start.

GET MY MASTERY MAP →