MCPcopy Index your code
hub / github.com/BeeBombshell/Python-DSA / isEmpty

Method isEmpty

DSA/DoublyLinkedList.py:15–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14 #method to check if the doubly linked list is empty or not
15 def isEmpty(self):
16 if self.head == self.tail == None:
17 return True
18 return False
19
20 #method to add an element in front the list i.e. head
21 def addFront(self, x):

Callers 3

addFrontMethod · 0.95
addTailMethod · 0.95
displayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected