MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / push

Method push

Python/stack using linked list.py:30–33  ·  view source on GitHub ↗
(self,value)

Source from the content-addressed store, hash-verified

28 return False
29
30 def push(self,value):
31 node=Node(value)
32 node.next=self.LinkedList.head
33 self.LinkedList.head = node
34
35 #pop
36 def pop(self):

Callers 1

Calls 1

NodeClass · 0.70

Tested by

no test coverage detected