Topological Sort Pattern

Order nodes in a DAG for course-schedule style problems.

#Title
269Alien Dictionary
329Longest Increasing Path in a Matrix
444Sequence Reconstruction
666Path Sum IV
913Cat and Mouse
1203Sort Items by Groups Respecting Dependencies
1728Cat and Mouse II
1857Largest Color Value in a Directed Graph
2246Longest Path With Different Adjacent Characters
2328Number of Increasing Paths in a Grid
2392Build a Matrix With Conditions
3435Frequencies of Shortest Supersequences
3481Apply Substitutions
3620Network Recovery Pathways
3812Minimum Edge Toggles on a Tree
3939Count Non Adjacent Subsets in a Rooted Tree