이진트리 이진트리는 각 노드가 최대 두 개의 자식 노드를 가지는 트리 자료구조이다 노드의 자식중 왼쪽에 있는 것을 왼쪽 자식 노드, 오른쪽에 있는 것을 오른쪽 자식 노드라고 한다 각 노드는 자식을 가지지 않을 수 있다 아래는 위 이미지에 맞게 이진트리를 구현하는 코드이다 using System; using System.Collections.Generic; using System.Text; namespace BinaryTree { class Tree { public int data; public Tree left; public Tree right; //생성자 public Tree(int data) { this.data = data; this.left = null; this.right = null; } } ..