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

Function EnQueue

structure/queue/queuearray.go:15–17  ·  view source on GitHub ↗

EnQueue it will be added new value into our list

(n any)

Source from the content-addressed store, hash-verified

13
14// EnQueue it will be added new value into our list
15func EnQueue(n any) {
16 ListQueue = append(ListQueue, n)
17}
18
19// DeQueue it will be removed the first value that added into the list
20func DeQueue() any {

Callers 1

TestQueueFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestQueueFunction · 0.68