Esempio n. 1
0
 //sap xep theo tu cao xuong thap RIGHT NODE LEFT
 static void RightNodeLeft(BinarySortTreeComponent myBST)
 {
     Console.WriteLine("RNL order: ");
     myBST.ResetEnumerator(true);
     foreach (var node in myBST)
     {
         Console.Write(node + " ");
     }
     Console.WriteLine();
 }
Esempio n. 2
0
 // sap xep tu thap den cao theo LEFT NODE RIGHT
 static void LeftNodeRight(BinarySortTreeComponent myBST)
 {
     Console.WriteLine("LeftNodeRight order: ");
     myBST.ResetEnumerator(false);
     foreach (var node in myBST)
     {
         Console.Write(node + " ");
     }
     Console.WriteLine();
 }