mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-02 18:39:09 +08:00
更新代码块
This commit is contained in:
@@ -96,7 +96,7 @@ return root;
|
||||
|
||||
整体代码如下:
|
||||
|
||||
```C++
|
||||
```CPP
|
||||
class Solution {
|
||||
public:
|
||||
TreeNode* insertIntoBST(TreeNode* root, int val) {
|
||||
@@ -126,7 +126,7 @@ void traversal(TreeNode* cur, int val)
|
||||
|
||||
代码如下:
|
||||
|
||||
```C++
|
||||
```CPP
|
||||
class Solution {
|
||||
private:
|
||||
TreeNode* parent;
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
|
||||
代码如下:
|
||||
|
||||
```C++
|
||||
```CPP
|
||||
class Solution {
|
||||
public:
|
||||
TreeNode* insertIntoBST(TreeNode* root, int val) {
|
||||
|
||||
Reference in New Issue
Block a user