MCPcopy Index your code
hub / github.com/OmkarPathak/pygorithm / delete_rear

Method delete_rear

pygorithm/data_structures/queue.py:119–126  ·  view source on GitHub ↗

deletes an element from the rear end of the deque

(self)

Source from the content-addressed store, hash-verified

117 self.queue.append(data)
118
119 def delete_rear(self):
120 """
121 deletes an element from the rear end of the deque
122 """
123 if self.is_empty():
124 return -1
125 else:
126 return self.queue.pop(0)
127
128 def delete_front(self):
129 """

Callers 1

test_dequeMethod · 0.95

Calls 2

is_emptyMethod · 0.95
popMethod · 0.45

Tested by 1

test_dequeMethod · 0.76