Category: Problems
-
Container With Most Water
Problem https://leetcode.com/problems/container-with-most-water/description/ Solution
-
House Robber II
Problem https://leetcode.com/problems/house-robber-ii/description/ Solution
-
The Earliest Moment When Everyone Become Friends
Problem https://leetcode.com/problems/the-earliest-moment-when-everyone-become-friends/description/ Solution Notes How to sort 2D array in ascending order How to sort 2D array in descending order
-
Redundant Connection
Problem https://leetcode.com/problems/redundant-connection/ Solution #1. DFS Solution #2. Union Find
-
Number of Connected Components in an Undirected Graph
Problem https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/ Solution #1. DFS Solution #2. Union Find
-
Graph Valid Tree
Problem https://leetcode.com/problems/graph-valid-tree/description/ Solution #1. DFS Solution #2. Union-Find Solution #3. Union-Find with boolean type
-
Number of Provinces
Problem https://leetcode.com/explore/featured/card/graph/618/disjoint-set/3845/ Solution
-
Pacific Atlantic Water Flow
Problem https://leetcode.com/problems/pacific-atlantic-water-flow/description/ Solution
-
Minimum Number of Vertices to Reach All Nodes
Problem https://leetcode.com/problems/minimum-number-of-vertices-to-reach-all-nodes/description/ Solution
