-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
30 lines (24 loc) · 758 Bytes
/
Main.java
File metadata and controls
30 lines (24 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package leetcode._86_;
import leetcode.common.ListNode;
/**
* Created by zhangbo54 on 2019-03-04.
*/
public class Main {
public static void main(String[] args) {
Solution solution = new Solution();
ListNode node1 = new ListNode(1);
ListNode node2 = new ListNode(4);
ListNode node31 = new ListNode(3);
ListNode node32 = new ListNode(2);
ListNode node41 = new ListNode(5);
ListNode node42 = new ListNode(2);
ListNode node5 = new ListNode(2);
node1.next = node2;
node2.next = node31;
node31.next = node32;
node32.next = node41;
node41.next = node42;
node42.next = node5;
System.out.println(solution.partition(node1, 3));
}
}