hot100链表
This commit is contained in:
parent
ea7b104794
commit
0f35386fb0
|
@ -5,6 +5,7 @@ public class Template {
|
|||
/**
|
||||
* Date 2924/8/19
|
||||
* DayNumber 1/2/3/4
|
||||
* hard 1
|
||||
* @param template
|
||||
*/
|
||||
public void test(int template){
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
package com.cool.hot100.linkedlist;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.cool.hot100.linkedlist;
|
||||
|
||||
public class Num206 {
|
||||
|
||||
/**
|
||||
* Date 2024/8/20
|
||||
* DayNumber 1
|
||||
* Hard 1
|
||||
* @param head
|
||||
* @return
|
||||
*/
|
||||
|
||||
public ListNode reverseList(ListNode head) {
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue