MCPcopy Create free account
hub / github.com/geekcomputers/Python / isEmpty

Method isEmpty

Infix_to_Postfix.py:16–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14
15 # check if the stack is empty
16 def isEmpty(self):
17 return True if self.top == -1 else False
18
19 # Return the value of the top of the stack
20 def peek(self):

Callers 2

popMethod · 0.95
infixToPostfixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected