public void DFS(TreeNode root) {深度优先 Stack<TreeNode> stack = new Stack<>(); stack.add(root); while (!stack.isEmpty()) { // 移除最后一个 TreeNode tempNode = Read More
posted @ 2020-12-22 14:37 soft.push("zzq") Views(329) Comments(0) Diggs(0) Edit