Day 03 移除链表元素-设计链表-反转链表
链表的定义
Class ListNode {
val: number
next: ListNode | null
constructor(val:? number, next?: ListNode | null) {
this.val = (val === undefined ? 0 : val)
this.next = (next === undefined ? null : next)
}
}
203. 移除链表元素
题目链接...
youngle316.hashnode.dev3 min read