删除链表中重复元素
ListNode cur = head;
while(cur.next!=null){
if(cur.val!=cur.next.val){
cur = cur.next;
}
else{
cur.next=cur.next.next;
}
}
return head;
707

被折叠的 条评论
为什么被折叠?



