MCPcopy 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
7func NewNode(val int, prev, next *Node) *Node {
8 return &Node{
9 val: val,
10 prev: prev,
11 next: next,
12 }
13}
14
15type MyCircularQueue struct {
16 head *Node

Callers 2

ConstructorFunction · 0.70
EnQueueMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected