mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-02 18:39:09 +08:00
更新代码块
This commit is contained in:
@@ -107,7 +107,7 @@ traversal(cur->left); // 左
|
||||
|
||||
递归法整体代码如下:
|
||||
|
||||
```C++
|
||||
```CPP
|
||||
class Solution {
|
||||
private:
|
||||
int pre; // 记录前一个节点的数值
|
||||
@@ -133,7 +133,7 @@ public:
|
||||
|
||||
这里我给出其中的一种,代码如下:
|
||||
|
||||
```C++
|
||||
```CPP
|
||||
class Solution {
|
||||
private:
|
||||
int pre; // 记录前一个节点的数值
|
||||
|
||||
Reference in New Issue
Block a user