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

Method removeHead

DSA/SinglyLinkedList.py:69–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67
68 #method to remove the head in the list
69 def removeHead(self):
70 if self.isEmpty():
71 return
72 temp = self.head
73 self.head = temp.next
74 temp = None
75
76 #method to remove the tail
77 def removeTail(self):

Callers 1

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected