Update 0707.设计链表.md

Java版本缺少ListNode的定义。
This commit is contained in:
LenzyM
2021-05-26 21:00:55 +08:00
committed by GitHub
parent b2c04ffbca
commit f5c797b50d

View File

@ -158,6 +158,14 @@ private:
Java
```Java
class ListNode {
int val;
ListNode next;
ListNode(){}
ListNode(int val) {
this.val=val;
}
}
class MyLinkedList {
//size存储链表元素的个数
int size;