Graph Coding Problems for Interviews Last Updated : 20 Sep, 2025 Comments Improve Suggest changes Like Article Like Report Here is the collection of the Top 50 list of frequently asked interview questions on Graph. Problems in this Article are divided into three Levels so that readers can practice according to the difficulty level step by step.Easy ProblemsBFS of GraphDFS of Graph Number of islandsDetect cycle in an undirected graph Bipartite Graph Snake and Ladder problem Flood Fill AlgorithmReplace O’s with X’sMedium ProblemsCycle in a Directed GraphUnion-Find Kruskal's Minimum Spanning TreePrim's Minimum Spanning Tree Dijkstra's Shortest Path Bellman Ford AlgorithmFloyd's AlgorithmToplogical Sort Prerequisite TasksCourse ScheduleCircle of Strings Maximum Bipartite MatchingDetect cycle in a directed graphFind whether path exists Possible paths between 2 verticesFind the number of ‘X’ total shapesDistance of nearest cell having 1Mother VertexUnit Area of largest region of 1’sRotten OrangesMinimum Swaps to SortSteps by KnightDijkstra Algorithm Word Search Word Boggle Hard ProblemsMinimum Weight CycleBridge Edge in Graph Strongly Connected Components (Kosaraju’s Algo) Minimum Cost PathStrongly Connected Components (Tarjan’s Algo)Articulation Point Alien DictionaryWord Ladder IWord Ladder IINumber of closed islandsShortest Path by removing K wallsMin Length String with All Substrings of Size N Hamiltonian Path Related ArticlesArray Coding Problems for InterviewsString Coding Problems for InterviewsTree Coding Problems for InterviewsDynamic Programming Coding Problems for InterviewsSorting Coding Problems for InterviewsSearching Coding Problems for InterviewsBinary Search Tree Coding Problems for InterviewsRelated TutorialsDSA TutorialSystem Design Tutorial Graph Practice Problems | Graph Data Structure | DSA Course Comment More info A abhishek1 Follow Improve Article Tags : Graph DSA GFG Sheets Explore DSA FundamentalsLogic Building Problems 2 min read Analysis of Algorithms 1 min read Data StructuresArray Data Structure 3 min read String in Data Structure 2 min read Hashing in Data Structure 2 min read Linked List Data Structure 2 min read Stack Data Structure 2 min read Queue Data Structure 2 min read Tree Data Structure 2 min read Graph Data Structure 3 min read Trie Data Structure 15+ min read AlgorithmsSearching Algorithms 2 min read Sorting Algorithms 3 min read Introduction to Recursion 14 min read Greedy Algorithms 3 min read Graph Algorithms 3 min read Dynamic Programming or DP 3 min read Bitwise Algorithms 4 min read AdvancedSegment Tree 2 min read Binary Indexed Tree or Fenwick Tree 15 min read Square Root (Sqrt) Decomposition Algorithm 15+ min read Binary Lifting 15+ min read Geometry 2 min read Interview PreparationInterview Corner 3 min read GfG160 3 min read Practice ProblemGeeksforGeeks Practice - Leading Online Coding Platform 6 min read Problem of The Day - Develop the Habit of Coding 5 min read Like