MCPcopy 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 返回队列的长度
33func (pq *PriorityQueue[T]) Len() int {
34 return len(pq.items)
35}
36
37// Less 比较两个元素的大小
38func (pq *PriorityQueue[T]) Less(i, j int) bool {

Callers 3

EnqueueMethod · 0.95
DequeueMethod · 0.95
buildResultsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected