MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / Node

Struct Node

133. Clone Graph/solution.go:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5)
6
7type Node struct {
8 Val int
9 Neighbors []*Node
10}
11
12func cloneGraph(node *Node) *Node {
13 if node == nil { return node } // deal with nil case

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected