(self, pos)
| 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): |
no outgoing calls
no test coverage detected