update 二叉树理论基础.md 增加C#代码

This commit is contained in:
Chenxue3
2024-01-11 14:50:59 +13:00
parent d2d14d6484
commit 650e33bc70

View File

@ -302,9 +302,19 @@ impl<T> TreeNode<T> {
} }
} }
} }
```
```
```c#
public class TreeNode
{
public int val;
public TreeNode left;
public TreeNode right;
public TreeNode(int x) { val = x; }
}
```
<p align="center"> <p align="center">
<a href="https://programmercarl.com/other/kstar.html" target="_blank"> <a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/> <img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a> </a>