LeetCode #269: Alien Dictionary
https://leetcode.com/problems/alien-dictionary/description/ To solve the problem, we need to consider the given list of words and construct a graph of the…
https://leetcode.com/problems/alien-dictionary/description/ To solve the problem, we need to consider the given list of words and construct a graph of the…
https://leetcode.com/problems/graph-valid-tree/ The problem asks us to determine if the given set of edges forms a valid tree. A tree is…
https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/description/ This problem can be solved using the Union-Find algorithm. We can use two arrays, par and rank to keep…
https://leetcode.com/problems/course-schedule/description/ To solve this problem, we can build an adjacency list from the given edge list. Then, we can use…
https://leetcode.com/problems/pacific-atlantic-water-flow/ This problem asks us to find the cells of a matrix where water can flow from Pacific Ocean to…
https://leetcode.com/problems/clone-graph/description/ The problem asks us to make a deep copy of a given undirected graph. We are given a node…
https://leetcode.com/problems/number-of-islands/description/ Number of Islands is a classic graph theory problem in which we are given a 2D grid with 1s…
https://leetcode.com/problems/word-search/description/ In the Word Search problem, we are given a 2D grid of characters and a word to search for.…
https://leetcode.com/problems/combination-sum/ Combination Sum is a problem in which we need to find all the unique combinations of numbers from a…
https://leetcode.com/problems/find-median-from-data-stream/description/ The problem asks us to find the median of a stream of integers as they are being added. We…