':type head: ListNode
:rtype: ListNode'

def deleteDuplicates(self, head):

    cur = head
    while cur:
        runner = cur.next
        while (runner and (runner.val == cur.val)):
            runner = runner.next
        cur.next = runner
        cur = runner
    return head
