先序遍历
This commit is contained in:
parent
daeea3e734
commit
5c7137c125
@ -50,8 +50,6 @@ public class LeetCode144 {
|
||||
}
|
||||
|
||||
class Solution1 {
|
||||
|
||||
|
||||
public List<Integer> preorderTraversal(TreeNode root) {
|
||||
List<Integer> res = new LinkedList<Integer>();
|
||||
if (root == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user