MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / NewNode

Function NewNode

go/0706-design-hashmap.go:7–12  ·  view source on GitHub ↗
(key, val int)

Source from the content-addressed store, hash-verified

5}
6
7func NewNode(key, val int) *Node {
8 return &Node{
9 Key: key,
10 Val: val,
11 }
12}
13
14type MyHashMap struct {
15 Array []*Node

Callers 2

ConstructorFunction · 0.70
PutMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected