MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Node

Struct Node

structure/queue/queuelinkedlist.go:13–16  ·  view source on GitHub ↗

Node will be store the value and the next node as well

Source from the content-addressed store, hash-verified

11
12// Node will be store the value and the next node as well
13type Node struct {
14 Data any
15 Next *Node
16}
17
18// Queue structure is tell us what our head is and what tail should be with length of the list
19type Queue struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected