MCPcopy Index your code
hub / github.com/keon/algorithms / StackNode

Class StackNode

algorithms/data_structures/stack.py:129–134  ·  view source on GitHub ↗

A single node in a linked-list-based stack.

Source from the content-addressed store, hash-verified

127
128
129class StackNode:
130 """A single node in a linked-list-based stack."""
131
132 def __init__(self, value: object) -> None:
133 self.value = value
134 self.next: StackNode | None = None
135
136
137class LinkedListStack(AbstractStack):

Callers 1

pushMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected