114. Flatten Binary Tree to Linked List
This commit is contained in:
12
114. Flatten Binary Tree to Linked List/TreeNode.cs
Normal file
12
114. Flatten Binary Tree to Linked List/TreeNode.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
public class TreeNode
|
||||
{
|
||||
public int val;
|
||||
public TreeNode? left;
|
||||
public TreeNode? right;
|
||||
public TreeNode(int val = 0, TreeNode? left = null, TreeNode? right = null)
|
||||
{
|
||||
this.val = val;
|
||||
this.left = left;
|
||||
this.right = right;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user