Loading repovive.com/roadmaps/pattern-22
Roadmaps
Pattern 22: LeetCode Interview Patterns
Union Find
Problemset
Discussion
AI Helper
Getting Started
0/5
Hash Map Patterns
0/33
Two Pointers
0/31
Sliding Window
0/33
Prefix Sum
0/32
Binary Search
0/33
Linked List
0/29
Stack Patterns
0/31
Monotonic Stack
0/32
Heap / Priority Queue
0/32
Trees
0/31
Trie
0/32
Backtracking
0/34
Graphs - BFS
0/32
Graphs - DFS
0/36
Topological Sort
0/32
Union Find
0/40
1
What is Union Find
2
Prerequisites
3
When to Use
4
When NOT to Use
5
LeetCode 1971 Find if Path Exists - Problem Statement
6
LeetCode 1971 Find if Path Exists - Solution
7
LeetCode 1971 Find if Path Exists - Example and Complexity Analysis
8
LeetCode 1971 Find if Path Exists - Implementation
9
LeetCode 547 Number of Provinces - Problem Statement
10
Quiz: Counting Components
11
LeetCode 547 Number of Provinces - Solution
12
LeetCode 547 Number of Provinces - Example and Complexity Analysis
13
LeetCode 547 Number of Provinces - Implementation
14
LeetCode 721 Accounts Merge - Problem Statement
15
LeetCode 721 Accounts Merge - Why Naive Fails
16
LeetCode 721 Accounts Merge - Solution
17
LeetCode 721 Accounts Merge - Example and Complexity Analysis
18
LeetCode 721 Accounts Merge - Implementation
19
LeetCode 1319 Number of Operations to Make Network Connected - Problem Statement
20
LeetCode 1319 Number of Operations to Make Network Connected - Why Naive Fails
21
LeetCode 1319 Number of Operations to Make Network Connected - Solution
22
LeetCode 1319 Number of Operations to Make Network Connected - Example and Complexity Analysis
23
LeetCode 1319 Number of Operations to Make Network Connected - Implementation
24
LeetCode 684 Redundant Connection - Problem Statement
25
Quiz: Detecting Redundant Edge
26
LeetCode 684 Redundant Connection - Why Naive Fails
27
LeetCode 684 Redundant Connection - Solution
28
LeetCode 684 Redundant Connection - Example and Complexity Analysis
29
LeetCode 684 Redundant Connection - Implementation
30
LeetCode 778 Swim in Rising Water - Problem Statement
31
LeetCode 778 Swim in Rising Water - Solution
32
LeetCode 778 Swim in Rising Water - Example and Complexity Analysis
33
LeetCode 778 Swim in Rising Water - Implementation
34
LeetCode 947 Most Stones Removed with Same Row or Column - Problem Statement
35
LeetCode 947 Most Stones Removed with Same Row or Column - Why Naive Fails
36
LeetCode 947 Most Stones Removed with Same Row or Column - Solution
37
LeetCode 947 Most Stones Removed with Same Row or Column - Example and Complexity Analysis
38
LeetCode 947 Most Stones Removed with Same Row or Column - Implementation
39
Common Mistakes
40
Section Recap
Dynamic Programming - 1D
0/36
Dynamic Programming - 2D
0/32
Intervals
0/31
Greedy
0/40
Bit Manipulation
0/34
Segment Tree
0/27
30-Day LeetCode Study Plan
0/8
17.1
What is Union Find
2 minutes
100%
Tasks
Read Unit