Skip to content

Commit 650e33b

Browse files
committed
update 二叉树理论基础.md 增加C#代码
1 parent d2d14d6 commit 650e33b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

problems/二叉树理论基础.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,19 @@ impl<T> TreeNode<T> {
302302
}
303303
}
304304
}
305-
```
306305

306+
```
307+
```c#
308+
public class TreeNode
309+
{
310+
public int val;
311+
public TreeNode left;
312+
public TreeNode right;
313+
public TreeNode(int x) { val = x; }
314+
}
315+
```
307316
<p align="center">
308317
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
309318
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
310319
</a>
320+

0 commit comments

Comments
 (0)