MCPcopy Create free account
hub / github.com/codedecks-in/LeetCode-Solutions / Front

Method Front

Python/622-Design-Circular-Queue.py:57–61  ·  view source on GitHub ↗

Get the front item from the queue.

(self)

Source from the content-addressed store, hash-verified

55 return True
56
57 def Front(self) -> int:
58 """
59 Get the front item from the queue.
60 """
61 return -1 if self.isEmpty() else self.queue[self.head]
62
63 def Rear(self) -> int:
64 """

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected