Mid-levelMid (3–6 yrs)CodingPythonMetaAmazonGoogle
Clone Graph
Clone an undirected connected graph. Each node has a value and a list of neighbors. Return the clone of the given node.
Answers use simple, clear English.
Time: O(n + e)Space: O(n)
Confidence
#graph#dfs