Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoSimplicity/LinkMe
/ Len
Method
Len
pkg/priorityqueue/priority_queue.go:33–35 ·
view source on GitHub ↗
Len 返回队列的长度
()
Source
from the content-addressed store, hash-verified
31
32
// Len 返回队列的长度
33
func
(pq *PriorityQueue[T]) Len() int {
34
return
len(pq.items)
35
}
36
37
// Less 比较两个元素的大小
38
func
(pq *PriorityQueue[T]) Less(i, j int) bool {
Callers
3
Enqueue
Method · 0.95
Dequeue
Method · 0.95
buildResults
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected