更新代码块

This commit is contained in:
youngyangyang04
2021-08-10 22:20:48 +08:00
parent c7c34dd824
commit 8a2d42013c
192 changed files with 552 additions and 552 deletions

View File

@@ -37,7 +37,7 @@
不难写出如下代码: **注意代码中空节点不入栈**
```C++
```CPP
class Solution {
public:
vector<int> preorderTraversal(TreeNode* root) {
@@ -84,7 +84,7 @@ public:
**中序遍历,可以写出如下代码:**
```C++
```CPP
class Solution {
public:
vector<int> inorderTraversal(TreeNode* root) {
@@ -116,7 +116,7 @@ public:
**所以后序遍历只需要前序遍历的代码稍作修改就可以了,代码如下:**
```C++
```CPP
class Solution {
public:
vector<int> postorderTraversal(TreeNode* root) {