LeetCode 959: Regions Cut By Slashes
A clear explanation of counting regions formed by slashes using union find over four triangles per cell.
19 notes
A clear explanation of counting regions formed by slashes using union find over four triangles per cell.
A clear explanation of solving Largest Component Size by Common Factor using prime factorization and union find.
A clear explanation of the Similar String Groups problem using graph connectivity and union-find.
A clear explanation of the Making A Large Island problem using connected component labeling and island size lookup.
A clear explanation of minimizing malware spread by analyzing connected components with Union Find.
A clear explanation of checking equality and inequality constraints using union-find.
A clear explanation of solving Most Stones Removed with Same Row or Column using connected components and union-find.
A reverse simulation and union-find solution for counting how many bricks fall after each hit.
A clear explanation of merging accounts that share emails using union find and sorted email groups.
Check sentence similarity with transitive word relationships using union-find.
Find the directed edge to remove so a graph becomes a rooted tree again, handling both cycles and nodes with two parents.
Find the extra edge in an undirected graph that creates a cycle using Union-Find.
A clear explanation of counting connected components in an undirected graph represented by an adjacency matrix.
A clear explanation of solving division equations using graph traversal and weighted edges.
A clear explanation of counting connected components using Union-Find and graph traversal.
A clear explanation of Number of Islands II using Union-Find to dynamically merge connected land cells.
A clear explanation of the Graph Valid Tree problem using Union Find to detect cycles and verify connectivity.
Capture surrounded O regions by marking border-connected O cells first, then flipping the remaining O cells.
Union-find with path compression and union by rank, rollback, parity, weighted, offline, and concurrent DSU designs.