We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47bd91a commit 95b1529Copy full SHA for 95b1529
src/main/kotlin/g0101_0200/s0133_clone_graph/Solution.kt
@@ -5,6 +5,12 @@ package g0101_0200.s0133_clone_graph
5
6
import com_github_leetcode.Node
7
8
+/*
9
+ * Definition for a Node.
10
+ * class Node(var `val`: Int) {
11
+ * var neighbors: ArrayList<Node?> = ArrayList<Node?>()
12
+ * }
13
+ */
14
class Solution {
15
fun cloneGraph(node: Node?): Node? {
16
return cloneGraph(node, HashMap())
0 commit comments