Topological Sort Coding Problems
Order nodes in directed acyclic graphs
36
Total Problems
0
Easy
15
Medium
20
Hard
Practice problems across 75+ categories
Practice problems frequently asked at Topological Sort • 36 problems | 0 Easy | 15 Medium | 20 Hard
| # | Problem | Difficulty | Topics |
|---|---|---|---|
| 1 | Alien Dictionary | Hard | ArrayStringDepth-First Search |
| 2 | All Ancestors of a Node in a Directed Acyclic Graph | Medium | Depth-First SearchBreadth-First SearchGraph |
| 3 | All Paths from Source Lead to Destination | Medium | GraphTopological Sort |
| 4 | Apply Substitutions | Medium | ArrayHash TableString |
| 5 | Build a Matrix With Conditions | Hard | ArrayGraphTopological Sort |
| 6 | Build Order with Parallel Execution | Hard | Advanced AlgorithmsGraphTopological Sort |
| 7 | Cat and Mouse | Hard | MathDynamic ProgrammingGraph |
| 8 | Cat and Mouse II | Hard | ArrayMathDynamic Programming |
| 9 | Collect Coins in a Tree | Hard | ArrayTreeGraph |
| 10 | Count Ways to Build Rooms in an Ant Colony | Hard | MathDynamic ProgrammingTree |
| 11 | Course Schedule | Medium | Depth-First SearchBreadth-First SearchGraph |
| 12 | Course Schedule II | Medium | Depth-First SearchBreadth-First SearchGraph |
| 13 | Course Schedule IV | Medium | Depth-First SearchBreadth-First SearchGraph |
| 14 | Design Excel Sum Formula | Unknown | ArrayHash TableString |
| 15 | Find All Possible Recipes from Given Supplies | Medium | ArrayHash TableString |
Powerful online tools to boost your productivity
Coding Ground For Developers
Code, Edit, Run and ShareIgnite your coding potential on Coding Ground - an immersive online platform for hands-on learning, collaboration, and skill development.