Topological Sort Problems
28 Topological Sort LeetCode problems · Solve with AI-powered hints & step-by-step explanations.
Learn the coding interview patterns behind these problems, including Topological Sort interview patterns.
Start with these
All Topological Sort problems
207 Course Schedule Medium210 Course Schedule II Medium310 Minimum Height Trees Medium329 Longest Increasing Path in a Matrix Hard802 Find Eventual Safe States Medium851 Loud and Rich Medium913 Cat and Mouse Hard1203 Sort Items by Groups Respecting Dependencies Hard1462 Course Schedule IV Medium1591 Strange Printer II Hard1632 Rank Transform of a Matrix Hard1728 Cat and Mouse II Hard1786 Number of Restricted Paths From First to Last Node Medium1857 Largest Color Value in a Directed Graph Hard1916 Count Ways to Build Rooms in an Ant Colony Hard1976 Number of Ways to Arrive at Destination Medium2050 Parallel Courses III Hard2115 Find All Possible Recipes from Given Supplies Medium2127 Maximum Employees to Be Invited to a Meeting Hard2192 All Ancestors of a Node in a Directed Acyclic Graph Medium2246 Longest Path With Different Adjacent Characters Hard2328 Number of Increasing Paths in a Grid Hard2360 Longest Cycle in a Graph Hard2392 Build a Matrix With Conditions Hard2603 Collect Coins in a Tree Hard3435 Frequencies of Shortest Supersequences Hard3530 Maximum Profit from Valid Topological Order in DAG Hard3620 Network Recovery Pathways Hard