Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ NewNode
Function
NewNode
go/0622-design-circular-queue.go:7–13 ·
view source on GitHub ↗
(val int, prev, next *Node)
Source
from the content-addressed store, hash-verified
5
}
6
7
func
NewNode(val int, prev, next *Node) *Node {
8
return
&Node{
9
val: val,
10
prev: prev,
11
next: next,
12
}
13
}
14
15
type
MyCircularQueue
struct
{
16
head *Node
Callers
2
Constructor
Function · 0.70
EnQueue
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected