PhantomCodeAI
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
PhantomCodeAI
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
Home
LeetCode Problems
Union Find
Union Find
Problems
74 Union Find LeetCode problems · Solve with AI-powered hints & step-by-step explanations.
128
Longest Consecutive Sequence
Medium
130
Surrounded Regions
Medium
200
Number of Islands
Medium
399
Evaluate Division
Medium
547
Number of Provinces
Medium
684
Redundant Connection
Medium
685
Redundant Connection II
Hard
695
Max Area of Island
Medium
721
Accounts Merge
Medium
765
Couples Holding Hands
Hard
778
Swim in Rising Water
Hard
785
Is Graph Bipartite?
Medium
803
Bricks Falling When Hit
Hard
827
Making A Large Island
Hard
839
Similar String Groups
Hard
886
Possible Bipartition
Medium
924
Minimize Malware Spread
Hard
928
Minimize Malware Spread II
Hard
947
Most Stones Removed with Same Row or Column
Medium
952
Largest Component Size by Common Factor
Hard
959
Regions Cut By Slashes
Medium
990
Satisfiability of Equality Equations
Medium
1020
Number of Enclaves
Medium
1061
Lexicographically Smallest Equivalent String
Medium
1202
Smallest String With Swaps
Medium
1254
Number of Closed Islands
Medium
1267
Count Servers that Communicate
Medium
1319
Number of Operations to Make Network Connected
Medium
1361
Validate Binary Tree Nodes
Medium
1391
Check if There is a Valid Path in a Grid
Medium
1489
Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
Hard
1559
Detect Cycles in 2D Grid
Medium
1569
Number of Ways to Reorder Array to Get Same BST
Hard
1579
Remove Max Number of Edges to Keep Graph Fully Traversable
Hard
1584
Min Cost to Connect All Points
Medium
1627
Graph Connectivity With Threshold
Hard
1631
Path With Minimum Effort
Medium
1632
Rank Transform of a Matrix
Hard
1697
Checking Existence of Edge Length Limited Paths
Hard
1722
Minimize Hamming Distance After Swap Operations
Medium
1905
Count Sub Islands
Medium
1970
Last Day Where You Can Still Cross
Hard
1971
Find if Path Exists in Graph
Easy
1998
GCD Sort of an Array
Hard
2003
Smallest Missing Genetic Value in Each Subtree
Hard
2076
Process Restricted Friend Requests
Hard
2092
Find All People With Secret
Hard
2157
Groups of Strings
Hard
2316
Count Unreachable Pairs of Nodes in an Undirected Graph
Medium
2334
Subarray With Elements Greater Than Varying Threshold
Hard
2368
Reachable Nodes With Restrictions
Medium
2382
Maximum Segment Sum After Removals
Hard
2421
Number of Good Paths
Hard
2424
Longest Uploaded Prefix
Medium
2492
Minimum Score of a Path Between Two Cities
Medium
2493
Divide Nodes Into the Maximum Number of Groups
Hard
2503
Maximum Number of Points From Grid Queries
Hard
2573
Find the String with LCP
Hard
2617
Minimum Number of Visited Cells in a Grid
Hard
2658
Maximum Number of Fish in a Grid
Medium
2685
Count the Number of Complete Components
Medium
2709
Greatest Common Divisor Traversal
Hard
2812
Find the Safest Path in a Grid
Medium
2948
Make Lexicographically Smallest Array by Swapping Elements
Medium
3108
Minimum Cost Walk in Weighted Graph
Hard
3235
Check if the Rectangle Corner Is Reachable
Hard
3378
Count Connected Components in LCM Graph
Hard
3493
Properties Graph
Medium
3532
Path Existence Queries in a Graph I
Medium
3600
Maximize Spanning Tree Stability with Upgrades
Hard
3607
Power Grid Maintenance
Medium
3608
Minimum Time for K Connected Components
Medium
3613
Minimize Maximum Component Cost
Medium
3619
Count Islands With Total Value Divisible by K
Medium
← Browse all LeetCode problems