(self)
| 75 | |
| 76 | #method to remove the tail |
| 77 | def removeTail(self): |
| 78 | if self.isEmpty(): |
| 79 | return |
| 80 | temp = self.head |
| 81 | while (temp != None) and (temp.next != self.tail): |
| 82 | temp = temp.next |
| 83 | self.tail = temp |
| 84 | self.tail.next = None |
| 85 | temp = None |
| 86 | |
| 87 | #method to delete a specific element |
| 88 | def delete(self, v): |
no test coverage detected