Advanced graphs

Go beyond plain traversal with ordering, weights or constraints: topological sort, shortest paths with Dijkstra, and minimum spanning trees. The tell is prerequisites, costs or distances, as in Course Schedule and Network Delay Time. It handles dependencies and weighted routes.

14 problems · 1 with a video · 3 to practice in an AI round

Advanced graphs problems
#ProblemDifficultyVideoAI round
1Course ScheduleMediumAI round
2Course Schedule IIMedium—
3Cheapest Flights Within K StopsMedium—AI round
4Evaluate DivisionMedium—
5Longest Increasing Path in a MatrixHard—AI round
6Minimum Height TreesMedium—
7Network Delay TimeMedium—
8Path With Minimum EffortMedium—
9Reconstruct ItineraryHard—
10Alien DictionaryHard—
11Find All Possible Recipes from Given SuppliesMedium—
12Number of Islands IIHard—
13The Maze IIMedium—
14Make Lexicographically Smallest Array by Swapping ElementsMedium—

Practice in an AI round

Three of these are AI rounds: 30 minutes, an AI agent beside your code, then a scored report.

Practice Course Schedule in an AI round