Core
Graph Traversal and Topological Sort
Grids, dependency chains, task schedulers, and path problems are all graphs in disguise. BFS finds shortest paths in unweighted graphs and explores level by level; DFS goes deep and is the backbone of cycle detection. Topological sort orders a DAG so every dependency comes before what needs it, and the same machinery tells you whether a dependency graph has an impossible cycle.
a free account unlocks the core curriculum tier · no card
Related concepts
Practise this in questions
Coding & DSANumber of islands: count connected regions in a grid →medium · Free with sign-inCoding & DSABuild a task scheduler: dependencies (topo sort), then priorities, then a concurrency limit →hard · PremiumCoding & DSAYou're handed docs for an API you've never seen: use it to find the shortest path between two nodes →medium · PremiumCoding & DSASimulate an infection spreading across a grid over time →medium · PremiumCoding & DSAShortest path across a grid to collect every key, where locked doors open only once you hold the matching key. →hard · PremiumCoding & DSAShortest path in a grid with obstacles →medium · Free with sign-in
