# LeetCode 547. Number of Provinces

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…

# LeetCode 690. Employee Importance

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…

# LeetCode 797. All Paths From Source to Target

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…

# LeetCode 323. Number of Connected Components in an Undirected Graph

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…

# LeetCode 1791. Find Center of Star Graph

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…

# LeetCode 399. Evaluate Division

Description https://leetcode.com/problems/most-common-word/ You are given an array of variable pairs equations and an array of real numbers values, where equations[i] = [Ai, Bi] and values[i] represent the…

# LeetCode 207. Course Schedule

Description https://leetcode.com/problems/course-schedule/ There are a total of numCourses courses you have to take, labeled from 0 to numCourses – 1. You are given an array prerequisites where prerequisites[i]…

# LeetCode 210. Course Schedule II

Description https://leetcode.com/problems/course-schedule-ii/ There are a total of numCourses courses you have to take, labeled from 0 to numCourses – 1. You are given an array prerequisites where prerequisites[i]…