You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good morning! Here's your coding interview problem for today.
This problem was asked by Microsoft.
The transitive closure of a graph is a measure of which vertices are reachable from other vertices. It can be represented as a matrix M, where M[i][j] == 1 if there is a path between vertices i and j, and otherwise 0.
For example, suppose we are given the following graph in adjacency list form:
Good morning! Here's your coding interview problem for today.
This problem was asked by Microsoft.
The transitive closure of a graph is a measure of which vertices are reachable from other vertices. It can be represented as a matrix
M
, whereM[i][j] == 1
if there is a path between verticesi
andj
, and otherwise0
.For example, suppose we are given the following graph in adjacency list form:
The transitive closure of this graph would be:
Given a graph, find its transitive closure.
The text was updated successfully, but these errors were encountered: