Number of Provinces (LeetCode 547) – Part 2
MediumLeetCode 547 · BFS · Google, Amazon +7 · 10:11Number of Provinces - (Google, Microsoft,Amazon) · BFS · Graph Concepts & Qns - 11 · Explanation-CodeMy notes
Sign in to keep private notes on every station, with video timestamps.
Pause here and write your approach in two lines. Compare it with MIK's when the video ends.
Sign in to write your approach →About this video
Video solution (part 2 of 2) for LeetCode 547 Number of Provinces by codestorywithMIK: Graphs, Medium. Topics: Depth-First Search, Breadth-First Search, Union-Find, Graph Theory. Watch the explanation, then check the code and solve it on LeetCode.
- Difficulty
- medium
- Topics
- Depth-First Search, Breadth-First Search, Union-Find, Graph Theory
- Patterns
- BFS, DFS
- Chapter
- Graphs
- Duration
- 10:11
Related problems
- Graph Concepts & Qns - 4 (Microsoft, Amazon, Flipkart) : Detect Cycle in Undirected Graph using DFS
- Course Schedule (LeetCode 207)
- Course Schedule-II (LeetCode 210)
- Is Graph Bipartite ? (LeetCode 785)
- Shortest Path in Weighted undirected graph
- Shortest Path in Binary Matrix (LeetCode 1091)
- Strongly Connected Components
- Hierholzer's Algorithm (LeetCode 2097)