Union Find | LeetCode Problems

44 Union Find solutions to LeetCode solutions.

Union Find Problems View all solutions →

Longest Consecutive Sequence

#128 Medium

Surrounded Regions

#130 Medium

Number of Islands

#200 Medium

Evaluate Division

#399 Medium

Number of Provinces

#547 Medium

Redundant Connection

#684 Medium

Redundant Connection II

#685 Hard

Max Area of Island

#695 Medium

Accounts Merge

#721 Medium

Couples Holding Hands

#765 Hard

Swim in Rising Water

#778 Hard

Is Graph Bipartite?

#785 Medium

Bricks Falling When Hit

#803 Hard

Making A Large Island

#827 Hard

Similar String Groups

#839 Hard

Possible Bipartition

#886 Medium

Minimize Malware Spread

#924 Hard

Minimize Malware Spread II

#928 Hard

Most Stones Removed with Same Row or Column

#947 Medium

Largest Component Size by Common Factor

#952 Hard

Regions Cut By Slashes

#959 Medium

Satisfiability of Equality Equations

#990 Medium

Number of Enclaves

#1020 Medium

Lexicographically Smallest Equivalent String

#1061 Medium

Smallest String With Swaps

#1202 Medium

Number of Closed Islands

#1254 Medium

Count Servers that Communicate

#1267 Medium

Number of Operations to Make Network Connected

#1319 Medium

Validate Binary Tree Nodes

#1361 Medium

Check if There is a Valid Path in a Grid

#1391 Medium

Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree

#1489 Hard

Detect Cycles in 2D Grid

#1559 Medium

Number of Ways to Reorder Array to Get Same BST

#1569 Hard

Remove Max Number of Edges to Keep Graph Fully Traversable

#1579 Hard

Min Cost to Connect All Points

#1584 Medium

Graph Connectivity With Threshold

#1627 Hard

Path With Minimum Effort

#1631 Medium

Rank Transform of a Matrix

#1632 Hard

Divide Nodes Into the Maximum Number of Groups

#2493 Hard

Maximum Number of Points From Grid Queries

#2503 Hard

Maximum Number of Fish in a Grid

#2658 Medium

Count the Number of Complete Components

#2685 Medium

Make Lexicographically Smallest Array by Swapping Elements

#2948 Medium

Minimum Cost Walk in Weighted Graph

#3108 Hard