Tag: union-find
- Accounts Merge
- Bricks Falling When Hit
- Check for Contradictions in Equations
- Check if the Rectangle Corner Is Reachable
- Check if There is a Valid Path in a Grid
- Checking Existence of Edge Length Limited Paths II
- Checking Existence of Edge Length Limited Paths
- Connecting Cities With Minimum Cost
- Count Connected Components in LCM Graph
- Count Servers that Communicate
- Count Sub Islands
- Count the Number of Complete Components
- Count Unreachable Pairs of Nodes in an Undirected Graph
- Couples Holding Hands
- Detect Cycles in 2D Grid
- Distance to a Cycle in Undirected Graph
- Divide Nodes Into the Maximum Number of Groups
- Evaluate Division
- Find All People With Secret
- Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
- Find if Path Exists in Graph
- Find the Safest Path in a Grid
- Find the String with LCP
- GCD Sort of an Array
- Graph Connectivity With Threshold
- Graph Valid Tree
- Greatest Common Divisor Traversal
- Groups of Strings
- Is Graph Bipartite?
- Largest Component Size by Common Factor
- Last Day Where You Can Still Cross
- Lexicographically Smallest Equivalent String
- Longest Consecutive Sequence
- Longest Uploaded Prefix
- Make Lexicographically Smallest Array by Swapping Elements
- Making A Large Island
- Max Area of Island
- Maximum Number of Fish in a Grid
- Maximum Number of Points From Grid Queries
- Maximum Segment Sum After Removals
- Min Cost to Connect All Points
- Minimize Hamming Distance After Swap Operations
- Minimize Malware Spread II
- Minimize Malware Spread
- Minimize Maximum Value in a Grid
- Minimum Cost Walk in Weighted Graph
- Minimum Number of Visited Cells in a Grid
- Minimum Runes to Add to Cast Spell
- Minimum Score of a Path Between Two Cities
- Most Stones Removed with Same Row or Column
- Number of Closed Islands
- Number of Connected Components in an Undirected Graph
- Number of Distinct Islands II
- Number of Distinct Islands
- Number of Enclaves
- Number of Good Paths
- Number of Islands II
- Number of Islands
- Number of Operations to Make Network Connected
- Number of Provinces
- Number of Unique Categories
- Number of Ways to Reorder Array to Get Same BST
- Optimize Water Distribution in a Village
- Path With Maximum Minimum Value
- Path With Minimum Effort
- Possible Bipartition
- Process Restricted Friend Requests
- Properties Graph
- Rank Transform of a Matrix
- Reachable Nodes With Restrictions
- Redundant Connection II
- Redundant Connection
- Regions Cut By Slashes
- Remove Max Number of Edges to Keep Graph Fully Traversable
- Satisfiability of Equality Equations
- Sentence Similarity II
- Similar String Groups
- Smallest Missing Genetic Value in Each Subtree
- Smallest String With Swaps
- Subarray With Elements Greater Than Varying Threshold
- Sum of Remoteness of All Cells
- Surrounded Regions
- Swim in Rising Water
- Synonymous Sentences
- The Earliest Moment When Everyone Become Friends
- Validate Binary Tree Nodes