16 lines
353 B
C#
16 lines
353 B
C#
namespace _700._Search_in_a_Binary_Search_Tree;
|
|
|
|
|
|
//Definition for a binary tree node.
|
|
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;
|
|
}
|
|
}
|
|
|