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

Method delete_front

pygorithm/data_structures/queue.py:128–135  ·  view source on GitHub ↗

deletes an element from the front end of the deque

(self)

Source from the content-addressed store, hash-verified

126 return self.queue.pop(0)
127
128 def delete_front(self):
129 """
130 deletes an element from the front end of the deque
131 """
132 if self.is_full():
133 return
134 else:
135 return self.queue.pop()
136
137 @staticmethod
138 def get_code():

Callers 1

test_dequeMethod · 0.95

Calls 2

is_fullMethod · 0.95
popMethod · 0.45

Tested by 1

test_dequeMethod · 0.76