MCPcopy 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.
122func (ll *Singly[T]) Count() int {
123 return ll.length
124}
125
126// Reverse reverses the list.
127func (ll *Singly[T]) Reverse() {

Callers 1

DelByPosMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected