Skip to content

Instantly share code, notes, and snippets.

@djaquels
Created October 11, 2022 21:49
Show Gist options
  • Save djaquels/1ec1ea1f63f2ea44fee47443fec56818 to your computer and use it in GitHub Desktop.
Save djaquels/1ec1ea1f63f2ea44fee47443fec56818 to your computer and use it in GitHub Desktop.
Binary Tree Implementation Using C#
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