# LeetCode 305. Number of Islands II

Description https://leetcode.com/problems/number-of-islands-ii/ You are given an empty 2D binary grid grid of size m x n. The grid represents a map where 0‘s represent…

Be a Good Techer and Tech for Good. www.goodtecher.com

Description https://leetcode.com/problems/number-of-islands-ii/ You are given an empty 2D binary grid grid of size m x n. The grid represents a map where 0‘s represent…

Description https://leetcode.com/problems/design-add-and-search-words-data-structure/ There is an undirected graph with n nodes, where each node is numbered between 0 and n – 1. You are given a 2D array graph,…

Description https://leetcode.com/problems/clone-graph/ Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph. Each node in…

Description https://leetcode.com/problems/rotting-oranges/ You are given an m x n grid where each cell can have one of three values: 0 representing an empty cell,…

Description https://leetcode.com/problems/accounts-merge/ Given a list of accounts where each element accounts[i] is a list of strings, where the first element accounts[i][0] is a name, and the…

Description https://leetcode.com/problems/number-of-provinces/ There are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and…

Description https://leetcode.com/problems/employee-importance/ You have a data structure of employee information, which includes the employee’s unique id, their importance value, and…

Description https://leetcode.com/problems/all-paths-from-source-to-target/ Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n – 1, find all possible paths from node 0 to…

Description https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/ You have a graph of n nodes. You are given an integer n and an array edges where edges[i] = [ai, bi] indicates that there is…

Description https://leetcode.com/problems/find-center-of-star-graph/ There is an undirected star graph consisting of n nodes labeled from 1 to n. A star graph is a graph where there is one center node…