MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / Enqueue

Method Enqueue

structure/queue/queuelinklistwithlist.go:25–27  ·  view source on GitHub ↗

Enqueue will be added new value

(value any)

Source from the content-addressed store, hash-verified

23
24// Enqueue will be added new value
25func (lq *LQueue) Enqueue(value any) {
26 lq.queue.PushBack(value)
27}
28
29// Dequeue will be removed the first value that input (First In First Out - FIFO)
30func (lq *LQueue) Dequeue() error {

Callers 1

TestQueueFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestQueueFunction · 0.76