解法一: public class Solution { ArrayList<TreeNode> list = new ArrayList<>(); // (1) TreeNode KthNode(TreeNode pRoot, int k) { addNode(pRoot); if (k >= 1 && list.size() >= k) { return list.get(k - 1); } return null; } ...