From 5073196a1083da5322dde47177f4af08ced9b4f1 Mon Sep 17 00:00:00 2001 From: iteng <1475208984@qq.com> Date: Sat, 25 May 2024 17:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=8D=A2leftNode=E3=80=81rightNode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems/0101.对称二叉树.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/problems/0101.对称二叉树.md b/problems/0101.对称二叉树.md index 063b5429..31c24fc5 100644 --- a/problems/0101.对称二叉树.md +++ b/problems/0101.对称二叉树.md @@ -224,8 +224,8 @@ public: st.push(root->left); st.push(root->right); while (!st.empty()) { - TreeNode* leftNode = st.top(); st.pop(); TreeNode* rightNode = st.top(); st.pop(); + TreeNode* leftNode = st.top(); st.pop(); if (!leftNode && !rightNode) { continue; } @@ -950,3 +950,4 @@ public bool IsSymmetric(TreeNode root) +