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

Method pop

Python/Turtle.py:838–846  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

836 else:
837 self.buffer[self.ptr].append(item)
838 def pop(self):
839 if self.bufsize > 0:
840 item = self.buffer[self.ptr]
841 if item is None:
842 return None
843 else:
844 self.buffer[self.ptr] = [None]
845 self.ptr = (self.ptr - 1) % self.bufsize
846 return (item)
847 def nr_of_items(self):
848 return self.bufsize - self.buffer.count([None])
849 def __repr__(self):

Callers 15

bfsMethod · 0.45
escape_routeFunction · 0.45
moveFunction · 0.45
_undogotoMethod · 0.45
_undoMethod · 0.45
undoMethod · 0.45
quicksortFunction · 0.45
countNodesMethod · 0.45
zigzagLevelOrderMethod · 0.45
levelOrderMethod · 0.45
bToDLLMethod · 0.45
addOneRowFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected