MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Stack

Struct Stack

structure/stack/stacklinkedlist.go:19–22  ·  view source on GitHub ↗

Stack has jost top of node and with length

Source from the content-addressed store, hash-verified

17
18// Stack has jost top of node and with length
19type Stack struct {
20 top *Node
21 length int
22}
23
24// push add value to last index
25func (ll *Stack) Push(n any) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected