MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / Rear

Method Rear

python/0622-design-circular-queue.py:44–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42
43
44 def Rear(self) -> int:
45 return -1 if self.isEmpty() else self.tail.val
46
47
48 def isEmpty(self) -> bool:

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected