Union Find Problems

Master union find problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 55 problems in this category.

Total Problems: 55
Easy: 1
Medium: 31
Hard: 23
Showing 50 of 55 problems

Problems

Scroll within this area to browse all problems

#
Title
Difficulty
200

Number of Islands

Medium
128

Longest Consecutive Sequence

Medium
721

Accounts Merge

Medium
801

Is Graph Bipartite?

Medium
854

Making A Large Island

Hard
794

Swim in Rising Water

Hard
399

Evaluate Division

Medium
3863

Power Grid Maintenance

Medium
2035

Count Sub Islands

Medium
684

Redundant Connection

Medium
1380

Number of Closed Islands

Medium
3823

Count Islands With Total Value Divisible by K

Medium
695

Max Area of Island

Medium
2121

Find if Path Exists in Graph

Easy
770

Couples Holding Hands

Hard
547

Number of Provinces

Medium
130

Surrounded Regions

Medium
1663

Detect Cycles in 2D Grid

Medium
2793

Count the Number of Complete Components

Medium
1058

Lexicographically Smallest Equivalent String

Medium
1753

Path With Minimum Effort

Medium
1275

Validate Binary Tree Nodes

Medium
1706

Min Cost to Connect All Points

Medium
1032

Satisfiability of Equality Equations

Medium
685

Redundant Connection II

Hard
964

Minimize Malware Spread II

Hard
1442

Number of Operations to Make Network Connected

Medium
1613

Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree

Hard
2588

Maximum Number of Points From Grid Queries

Hard
984

Most Stones Removed with Same Row or Column

Medium
922

Possible Bipartition

Medium
1257

Rank Transform of a Matrix

Hard
3908

Minimum Time for K Connected Components

Medium
2582

Minimum Score of a Path Between Two Cities

Medium
1223

Graph Connectivity With Threshold

Hard
869

Similar String Groups

Hard
2403

Count Unreachable Pairs of Nodes in an Undirected Graph

Medium
2914

Find the Safest Path in a Grid

Medium
960

Minimize Malware Spread

Hard
3809

Properties Graph

Medium
2419

Subarray With Elements Greater Than Varying Threshold

Hard
821

Bricks Falling When Hit

Hard
2708

Find the String with LCP

Hard
2131

Smallest Missing Genetic Value in Each Subtree

Hard
3881

Minimize Maximum Component Cost

Medium
3219

Make Lexicographically Smallest Array by Swapping Elements

Medium
1692

Number of Ways to Reorder Array to Get Same BST

Hard
2827

Greatest Common Divisor Traversal

Hard
2505

Number of Good Paths

Hard
3902

Maximize Spanning Tree Stability with Upgrades

Hard
Loading more problems...

Union Find LeetCode Problems List

Related LeetCode Topics

Union Find LeetCode Problems - Interview Coder