-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.java
More file actions
30 lines (23 loc) · 463 Bytes
/
Copy pathNode.java
File metadata and controls
30 lines (23 loc) · 463 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
30
package algorithm.utils;
/**
* @author Ethan Zhang
* @date 2022/3/19
*/
public class Node {
public int value;
public Node next;
public Node rand;
public Node(int value) {
this.value = value;
}
public Node(int value, Node next) {
this.value = value;
this.next = next;
}
@Override
public String toString() {
return "Node{" +
"value=" + value +
'}';
}
}