Created
October 11, 2022 21:49
-
-
Save djaquels/1ec1ea1f63f2ea44fee47443fec56818 to your computer and use it in GitHub Desktop.
Binary Tree Implementation Using C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ColumnOrder { | |
class Node{ | |
private Node _left; | |
private Node _right; | |
private int _value; | |
public Node(int val){ | |
_value = val; | |
_left = null; | |
_right = null; | |
} | |
public Node Left { | |
get => _left; | |
set => _left = value; | |
} | |
public Node Right { | |
get => _right; | |
set => _right = value; | |
} | |
public int Value { | |
get => _value; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment