https://leetcode.com/problems/minimum-height-trees/description/
Center of an acyclic graph #medium #graph #toposort
Center of an acyclic graph #medium #graph #toposort
👍2
https://leetcode.com/problems/all-ancestors-of-a-node-in-a-directed-acyclic-graph/description/
List of ancestors in a DAG #medium #dfs #toposort
List of ancestors in a DAG #medium #dfs #toposort
👍3
https://leetcode.com/problems/build-a-matrix-with-conditions/description/
Build a matrix from a graph conditions #hard #graph #toposort
Build a matrix from a graph conditions #hard #graph #toposort
👍3
https://leetcode.com/problems/maximum-number-of-k-divisible-components/description/
Max connected components divisible by
Max connected components divisible by
k
in graph #hard #toposort👍3
https://leetcode.com/problems/find-minimum-diameter-after-merging-two-trees/description/
Diameter of 2 connected trees #hard #graph #toposort
Diameter of 2 connected trees #hard #graph #toposort
👍4
https://leetcode.com/problems/find-eventual-safe-states/description/
Nodes without cycles #medium #dfs #toposort
Nodes without cycles #medium #dfs #toposort
👍2
https://leetcode.com/problems/maximum-employees-to-be-invited-to-a-meeting/description/
Max connected siblings in graph #hard #dfs #toposort
Max connected siblings in graph #hard #dfs #toposort
👍4
https://leetcode.com/problems/course-schedule-iv/description/
All innodes for each query in graph #medium #dfs #toposort #floyd_warshall
All innodes for each query in graph #medium #dfs #toposort #floyd_warshall
👍2
https://leetcode.com/problems/largest-color-value-in-a-directed-graph/description/
Max color freq path #hard #dp #toposort
Max color freq path #hard #dp #toposort
👍2🔥1