Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/betty200744/ultimate-go
/ IsEmpty
Method
IsEmpty
algorithms/data-structures/queue/queue.go:31–33 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
29
return
queue
30
}
31
func
(q *Queue) IsEmpty() bool {
32
return
len(q.queue) == 0
33
}
34
func
(q *Queue) Peek() (
interface
{}, bool) {
35
if
len(q.queue) == 0 {
36
return
nil, false
Callers
1
Test_Queue
Function · 0.45
Calls
no outgoing calls
Tested by
1
Test_Queue
Function · 0.36