MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / push

Method push

data_structures/binary tree/AVLtree.py:14–16  ·  view source on GitHub ↗
(self,data)

Source from the content-addressed store, hash-verified

12 def isEmpty(self):
13 return self.head == self.tail
14 def push(self,data):
15 self.data.append(data)
16 self.tail = self.tail + 1
17 def pop(self):
18 ret = self.data[self.head]
19 self.head = self.head + 1

Callers 1

traversaleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected