Interview Questions

Clone directed graph

Clone directed graph. The input to the algorithm is one of the nodes of the graph which contains a list of its adjacent nodes. Assume you can navigate visit all renaming nodes in the graph from the node that you are given. Your function has to return pointer to cloned graph.

View Solution
comments powered by Disqus