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

Struct Queue

structure/queue/queuelinkedlist.go:19–23  ·  view source on GitHub ↗

Queue structure is tell us what our head is and what tail should be with length of the list

Source from the content-addressed store, hash-verified

17
18// Queue structure is tell us what our head is and what tail should be with length of the list
19type Queue struct {
20 head *Node
21 tail *Node
22 length int
23}
24
25// enqueue it will be added new value into queue
26func (ll *Queue) enqueue(n any) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected