Skip to content

Commit

Permalink
Merge pull request youngyangyang04#2564 from xingyiteng/leetcode101
Browse files Browse the repository at this point in the history
Update 0101.对称二叉树.md 交换顺序
  • Loading branch information
youngyangyang04 authored Jun 20, 2024
2 parents 3582a9f + 5073196 commit 843c3f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion problems/0101.对称二叉树.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -950,3 +950,4 @@ public bool IsSymmetric(TreeNode root)
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>

0 comments on commit 843c3f7

Please sign in to comment.