You are viewing a single comment's thread. Return to all comments →
My Python Solution:
def removeDuplicates(self, head): cur = head while cur and cur.next: if cur.data == cur.next.data: cur.next = cur.next.next else: cur = cur.next return head
Seems like cookies are disabled on this browser, please enable them to open this website
Day 24: More Linked Lists
You are viewing a single comment's thread. Return to all comments →
My Python Solution: