Challenge 4: Find a "Mother Vertex" in a Graph
Given a graph, can you find a vertex from which all the other vertices are reachable?
Problem statement
You have to implement the int findMotherVertex(Graph g)
function, which will take a graph as input and find out a mother vertex in the graph.
By definition, the mother vertex ...
Access this course and 1400+ top-rated courses and projects.