Graphs
16 animated solutionsTraversing connected structure: BFS for shortest paths in unweighted graphs, DFS for reachability and components, and building graphs from edge lists or grids. Every problem below plays as an animated walkthrough with solutions in Python, Java and C++. Companies that ask these most: Zenefits, Wix, Snap.
Clone Graph
Course Schedule
Course Schedule II
Evaluate Division
Graph Valid Tree
Max Area of Island
Minimum Genetic Mutation
Number of Connected Components In An Undirected Graph
Number of Islands
Pacific Atlantic Water Flow
Redundant Connection
Rotting Oranges
Snakes and Ladders
Surrounded Regions
Walls And Gates
Word Ladder