Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ Count
Method
Count
structure/linkedlist/singlylinkedlist.go:122–124 ·
view source on GitHub ↗
Count returns the current size of the list.
()
Source
from the content-addressed store, hash-verified
120
121
// Count returns the current size of the list.
122
func
(ll *Singly[T]) Count() int {
123
return
ll.length
124
}
125
126
// Reverse reverses the list.
127
func
(ll *Singly[T]) Reverse() {
Callers
1
DelByPos
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected