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

Method isEmpty

Python/stack using linked list.py:24–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 return '\n'.join(values)
23
24 def isEmpty(self):
25 if self.LinkedList.head == None:
26 return True
27 else:
28 return False
29
30 def push(self,value):
31 node=Node(value)

Callers 6

popMethod · 0.95
peekMethod · 0.95
infix2PrefixMethod · 0.95
isBalancedMethod · 0.95
checkBalancedMethod · 0.95
infixToPostFixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected