更改 0226.翻转二叉树.md C语言格式

This commit is contained in:
Arthur
2021-11-08 11:50:39 +00:00
parent a100480879
commit 808bdbb860

View File

@ -565,7 +565,7 @@ var invertTree = function(root) {
}; };
``` ```
C: ### C:
递归法 递归法
```c ```c
struct TreeNode* invertTree(struct TreeNode* root){ struct TreeNode* invertTree(struct TreeNode* root){
@ -582,6 +582,7 @@ struct TreeNode* invertTree(struct TreeNode* root){
return root; return root;
} }
``` ```
迭代法:深度优先遍历 迭代法:深度优先遍历
```c ```c
struct TreeNode* invertTree(struct TreeNode* root){ struct TreeNode* invertTree(struct TreeNode* root){