Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ Length
Method
Length
structure/deque/deque.go:82–84 ·
view source on GitHub ↗
Length gets the length of Deque.
()
Source
from the content-addressed store, hash-verified
80
81
// Length gets the length of Deque.
82
func
(dq *DoublyEndedQueue[T]) Length() int {
83
return
len(dq.deque)
84
}
Callers
1
TestDeque
Function · 0.45
Calls
no outgoing calls
Tested by
1
TestDeque
Function · 0.36