class Solution(object): def deleteDuplicates(self, head): """ :type head: ListNode :rtype: ListNode """ tmp=head while tmp: while tmp.next and tmp.next.val==tmp.val: tmp.next=tmp.next.next tmp=tmp.next return head
标签:log lis == let pytho duplicate return type pre
class Solution(object): def deleteDuplicates(self, head): """ :type head: ListNode :rtype: ListNode """ tmp=head while tmp: while tmp.next and tmp.next.val==tmp.val: tmp.next=tmp.next.next tmp=tmp.next return head
83. Remove Duplicates from Sorted List
标签:log lis == let pytho duplicate return type pre
原文地址:https://www.cnblogs.com/xlqtlhx/p/8151053.html