摘要: 203.移除链表元素 力扣链接 创建一个虚拟头节点 func removeElements(head *ListNode, val int) *ListNode { p:=&ListNode{} p.Next=head q:=p for p!=nil&&p.Next!=nil{ if p.Next. 阅读全文
posted @ 2021-09-28 20:29 CJ-cooper 阅读(217) 评论(0) 推荐(0) 编辑