using System.Collections.Generic;
Console.Write($"{root.data} ");
public static void Main()
int [] parent = new int[] {-1, 0, 0, 1, 2, 2};
var makeNode = new Dictionary<int, Node>();
for(int i = 0; i < 6; i++) {
for(int i = 0; i < 6; i++) {
Node par = makeNode[parent[i]];
BinaryTree tree = new BinaryTree();