MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / isEmpty

Method isEmpty

Python/circular queue.py:28–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26
27 # to check if queue is empty
28 def isEmpty(self):
29 if self.top ==-1:
30 return True
31 else:
32 return False
33
34
35

Callers 6

dequeueMethod · 0.95
peekMethod · 0.95
mergeKListsMethod · 0.45
mergeMethod · 0.45
medianSlidingWindowMethod · 0.45
reverseWordsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected