19 problems
Graph interview problems
19 Graph problems, from easy to hard. Each one has an editorial explaining the approach and its complexity, and a visualizer that runs the solution step by step on the example input or your own.
Medium (16)
- 118. Surrounded RegionsMedium
- 121. Clone GraphMedium
- 158. Number of IslandsMedium
- 163. Course ScheduleMedium
- 166. Course Schedule IIMedium
- 196. Graph Valid TreeMedium
- 219. Number of Connected Components in an Undirected GraphMedium
- 238. Evaluate DivisionMedium
- 282. Redundant ConnectionMedium
- 289. Accounts MergeMedium
- 295. Network Delay TimeMedium
- 301. Is Graph Bipartite?Medium
- 302. Cheapest Flights Within K StopsMedium
- 342. Course Schedule IVMedium
- 349. Min Cost to Connect All PointsMedium
- 359. Minimize Hamming Distance After Swap OperationsMedium