MCPcopy Index your code
hub / github.com/BeeBombshell/Python-DSA / pop

Method pop

DSA/deque.py:43–49  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 self.head %= self.length
42
43 def pop(self):
44 if self.is_empty():
45 raise IndexError()
46 ret = self.buf[(self.tail - 1) % self.length]
47 self.tail -= 1
48 self.tail %= self.length
49 return ret
50
51 def popleft(self):
52 if self.is_empty():

Callers 13

insertion_sortMethod · 0.80
sortArrayMethod · 0.80
sortArrayMethod · 0.80
insertFunction · 0.80
inorderTraversalMethod · 0.80
bfsFunction · 0.80
insertFunction · 0.80
postorderTraversalMethod · 0.80
insertFunction · 0.80
preorderTraversalMethod · 0.80
insertFunction · 0.80
verif_tFunction · 0.80

Calls 1

is_emptyMethod · 0.95

Tested by

no test coverage detected