摘要:
☆☆☆☆解法:本题同剑指56.删除链表中重复的结点 class Solution { public ListNode deleteDuplicates(ListNode head) { if (head == null || head.next == null) return head; ListN 阅读全文
posted @ 2020-12-14 10:34
不学无墅_NKer
阅读(63)
评论(0)
推荐(0)
摘要:
class Solution { public ListNode removeElements(ListNode head, int val) { if (head == null) return null; ListNode dummyHead = new ListNode(-1); dummyH 阅读全文
posted @ 2020-12-14 09:40
不学无墅_NKer
阅读(42)
评论(0)
推荐(0)

浙公网安备 33010602011771号