-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
20 lines (16 loc) · 451 Bytes
/
Copy pathMain.java
File metadata and controls
20 lines (16 loc) · 451 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package leetcode._94_;
import leetcode.common.TreeNode;
/**
* Created by zhangbo54 on 2019-03-04.
*/
public class Main {
public static void main(String[] args) {
Solution solution = new Solution();
TreeNode root = new TreeNode(1);
TreeNode n2 = new TreeNode(2);
TreeNode n3 = new TreeNode(3);
root.right = n2;
n2.left = n3;
System.out.println(solution.inorderTraversal(root));
}
}