Skip to content

Commit

Permalink
更改 0226.翻转二叉树.md C语言格式
Browse files Browse the repository at this point in the history
  • Loading branch information
KingArthur0205 committed Nov 8, 2021
1 parent a100480 commit 808bdbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion problems/0226.翻转二叉树.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ var invertTree = function(root) {
};
```

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

0 comments on commit 808bdbb

Please sign in to comment.