• + 0 comments
    previous = head
            while head.next:
                if head.next.data == head.data:
                    head.next = head.next.next
                else:
                    head = head.next
                
            return previous