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

Method isEmpty

structure/queue/queuelinkedlist.go:60–62  ·  view source on GitHub ↗

isEmpty it will check our list is empty or not

()

Source from the content-addressed store, hash-verified

58
59// isEmpty it will check our list is empty or not
60func (ll *Queue) isEmpty() bool {
61 return ll.length == 0
62}
63
64// len is return the length of queue
65func (ll *Queue) len() int {

Callers 2

dequeueMethod · 0.95
TestQueueFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestQueueFunction · 0.76