Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
func
NewNode(key, val int) *Node {
8
return
&Node{
9
Key: key,
10
Val: val,
11
}
12
}
13
14
type
MyHashMap
struct
{
15
Array []*Node
Callers
2
Constructor
Function · 0.70
Put
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected