-
Notifications
You must be signed in to change notification settings - Fork 63
[New Problem] <Clone a Graph> #406
Copy link
Copy link
Open
Labels
Level-2Level 2 contributionLevel 2 contributionNew-problemSuggest a new DSA problem for inclusionSuggest a new DSA problem for inclusionStart Working2-3 days max to work on this Issue, while staying assigned.2-3 days max to work on this Issue, while staying assigned.gssoc25Official gsssoc25 label, that marks the contribution.Official gsssoc25 label, that marks the contribution.
Description
Metadata
Metadata
Assignees
Labels
Level-2Level 2 contributionLevel 2 contributionNew-problemSuggest a new DSA problem for inclusionSuggest a new DSA problem for inclusionStart Working2-3 days max to work on this Issue, while staying assigned.2-3 days max to work on this Issue, while staying assigned.gssoc25Official gsssoc25 label, that marks the contribution.Official gsssoc25 label, that marks the contribution.
📝 New Problem Idea
Problem Title:
Clone a Graph
Brief Statement:
Given a reference of a node in a connected undirected graph.
Return a deep copy(clone) of the graph.
Each node in the graph contains a value (int) and a list (List[Node]) of its neighbors.
class Node {
public int val;
public List neighbors;
}
Topic of this
Problemgraph traversal bfs & dfs , hashmap