Skip to content

Commit aa00fdd

Browse files
adding clone graph
1 parent 88ddefd commit aa00fdd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Python/CloneGraph.py

Whitespace-only changes.

Python/clone-graph.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import copy
2+
class Solution:
3+
def cloneGraph(self, node: 'Node') -> 'Node':
4+
return copy.deepcopy(node)

0 commit comments

Comments
 (0)