# 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…

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

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…

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…

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]…

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]…