Challenge: Find a Mother Vertex in a Directed Graph
Try to solve the Find a Mother Vertex in a Directed Graph problem.
We'll cover the following
Statement
Given a directed graph as input, determine a mother vertex within it. A mother vertex in a graph
Constraints:
graph.length
There are no repeated edges.
Examples
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.