Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ Length
Method
Length
go/chapter02/stack/stack.go:27–29 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
}
26
27
func
(s *Stack) Length() int {
28
return
s.size
29
}
30
31
func
(s *Stack) IsEmpty() bool {
32
return
s.size == 0
Callers
1
main
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected