Create ListNode.java

master
wsy182 2024-07-08 20:21:46 +08:00
parent 95ea49c5a0
commit 01f220bacf
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package solution;
public class ListNode {
int val;
ListNode next;
ListNode() {
}
ListNode(int val) {
this.val = val;
}
ListNode(int val, ListNode next) {
this.val = val;
this.next = next;
}
}