โ† All topics

Learning

IDProblemDifficultySectionSheets
1222Introduction to GraphEasyLearningA2Z
2870Graph Representation | C++EasyLearningA2Z
2871Graph Representation | JavaEasyLearningA2Z
528Connected ComponentsMediumLearningA2Z B75
529Traversal TechniquesMediumLearningA2Z SDE
2831DFSMediumLearningA2Z SDE

Problems on BFS/DFS

IDProblemDifficultySectionSheets
535Number of provincesMediumProblems on BFS/DFSA2Z
2830Connected Components Problem in MatrixMediumProblems on BFS/DFSA2Z
536Rotten OrangesMediumProblems on BFS/DFSA2Z SDE
531Flood fill algorithmMediumProblems on BFS/DFSA2Z
2817Cycle Detection in Undirected Graph (bfs)HardProblems on BFS/DFSA2Z
501Detect a cycle in an undirected graphHardProblems on BFS/DFSA2Z
530Distance of nearest cell having oneMediumProblems on BFS/DFSA2Z
537Surrounded RegionsMediumProblems on BFS/DFSA2Z
533Number of enclavesMediumProblems on BFS/DFSA2Z
509Word ladder IHardProblems on BFS/DFSA2Z
510Word ladder IIHardProblems on BFS/DFSA2Z
534Number of islandsMediumProblems on BFS/DFSA2Z
2813Bipartite Graph (DFS)HardProblems on BFS/DFSA2Z
2814Cycle Detection in Directed Graph (DFS)HardProblems on BFS/DFSA2Z
2832Flood-fill AlgorithmMediumProblems on BFS/DFSSDE
188Clone GraphMediumProblems on BFS/DFSSDE B75
2818Detect A cycle in Undirected Graph using BFSHardProblems on BFS/DFSSDE
2819Detect A cycle in Undirected Graph using DFSHardProblems on BFS/DFSSDE
2833Number of islands(Do in Grid and Graph Both)MediumProblems on BFS/DFSSDE B75
499Bipartite graphHardProblems on BFS/DFSSDE
2812Bipartite Check using DFSHardProblems on BFS/DFSSDE
2403Pacific Atlantic Water FlowEasyProblems on BFS/DFSB75
495Graph Valid TreeMediumProblems on BFS/DFSB75

Topo Sort and Problems

IDProblemDifficultySectionSheets
2822Topo SortHardTopo Sort and ProblemsA2Z
502Topological sort or Kahn's algorithmHardTopo Sort and ProblemsA2Z
500Detect a cycle in a directed graphHardTopo Sort and ProblemsA2Z
504Course Schedule IHardTopo Sort and ProblemsA2Z B75
505Course Schedule IIMediumTopo Sort and ProblemsA2Z
506Find eventual safe statesHardTopo Sort and ProblemsA2Z
503Alien DictionaryHardTopo Sort and ProblemsA2Z B75
2816Detect A cycle in a Directed Graph using DFSHardTopo Sort and ProblemsSDE
2815Detect A cycle in a Directed Graph using BFSHardTopo Sort and ProblemsSDE
2820Topological Sort BFSHardTopo Sort and ProblemsSDE
2821Topological Sort DFSHardTopo Sort and ProblemsSDE

Shortest Path Algorithms and Problems

IDProblemDifficultySectionSheets
508Shortest path in undirected graph with unit weightsHardShortest Path Algorithms and ProblemsA2Z
507Shortest path in DAGHardShortest Path Algorithms and ProblemsA2Z
2827Djisktra's AlgorithmHardShortest Path Algorithms and ProblemsA2Z
2828Why priority Queue is used in Djisktra's AlgorithmHardShortest Path Algorithms and ProblemsA2Z
527Shortest Distance in a Binary MazeHardShortest Path Algorithms and ProblemsA2Z
525Path with minimum effortHardShortest Path Algorithms and ProblemsA2Z
519Cheapest flight within K stopsHardShortest Path Algorithms and ProblemsA2Z
764Network Delay TimeMediumShortest Path Algorithms and ProblemsA2Z
524Number of ways to arrive at destinationHardShortest Path Algorithms and ProblemsA2Z
523Minimum multiplications to reach endHardShortest Path Algorithms and ProblemsA2Z
2826Bellman Ford AlgorithmHardShortest Path Algorithms and ProblemsA2Z
522Floyd warshall algorithmHardShortest Path Algorithms and ProblemsA2Z
521Find the city with the smallest number of neighborsHardShortest Path Algorithms and ProblemsA2Z
520Dijkstra's algorithmHardShortest Path Algorithms and ProblemsSDE
518Bellman ford algorithmHardShortest Path Algorithms and ProblemsSDE
2829Floyd Warshall AlgorithmHardShortest Path Algorithms and ProblemsSDE

MinimumSpanningTree/Disjoint Set and Problems

IDProblemDifficultySectionSheets
1221MST theoryEasyMinimumSpanningTree/Disjoint Set and ProblemsA2Z
2825Prim's AlgorithmHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
516Disjoint SetHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
517Find the MST weightHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
515Number of operations to make network connectedHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
513Most stones removed with same row or columnMediumMinimumSpanningTree/Disjoint Set and ProblemsA2Z
511Accounts mergeHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
514Number of islands IIHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
512Making a large islandHardMinimumSpanningTree/Disjoint Set and ProblemsA2Z
1006Swim in Rising WaterMediumMinimumSpanningTree/Disjoint Set and ProblemsA2Z
2824MST using Prim's AlgoHardMinimumSpanningTree/Disjoint Set and ProblemsSDE
2823MST using Kruskal's AlgoHardMinimumSpanningTree/Disjoint Set and ProblemsSDE

Other Algorithms

IDProblemDifficultySectionSheets
497Bridges in graphHardOther AlgorithmsA2Z
496Articulation point in graphHardOther AlgorithmsA2Z
498Kosaraju's algorithmHardOther AlgorithmsA2Z
2811Strongly Connected Component(using KosaRaju's algo)HardOther AlgorithmsSDE