Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
60
func
(ll *Queue) isEmpty() bool {
61
return
ll.length == 0
62
}
63
64
// len is return the length of queue
65
func
(ll *Queue) len() int {
Callers
2
dequeue
Method · 0.95
TestQueue
Function · 0.95
Calls
no outgoing calls
Tested by
1
TestQueue
Function · 0.76