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

Method remove

DSA/DoublyLinkedList.py:72–80  ·  view source on GitHub ↗
(self, pos)

Source from the content-addressed store, hash-verified

70
71 #method to remove element at a specific position
72 def remove(self, pos):
73 temp = self.head
74 i = 1
75 while i < pos:
76 temp = temp.next
77 i += 1
78 temp.prev.next = temp.next
79 temp.next.prev = temp.prev
80 temp = None
81
82 #method to display the doubly linked list
83 def display(self):

Callers 2

genFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected