Skip to content

Commit 95b1529

Browse files
committed
Improved task 133
1 parent 47bd91a commit 95b1529

File tree

1 file changed

+6
-0
lines changed
  • src/main/kotlin/g0101_0200/s0133_clone_graph

1 file changed

+6
-0
lines changed

src/main/kotlin/g0101_0200/s0133_clone_graph/Solution.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ package g0101_0200.s0133_clone_graph
55

66
import com_github_leetcode.Node
77

8+
/*
9+
* Definition for a Node.
10+
* class Node(var `val`: Int) {
11+
* var neighbors: ArrayList<Node?> = ArrayList<Node?>()
12+
* }
13+
*/
814
class Solution {
915
fun cloneGraph(node: Node?): Node? {
1016
return cloneGraph(node, HashMap())

0 commit comments

Comments
 (0)