Exemplo n.º 1
0
 public void TreePathsTest()
 {
     testTree       test  = new testTree();
     TreeNode       root  = test.buildTreeTest();
     TreePaths      path  = new TreePaths();
     IList <string> paths = path.BinaryTreePaths(root);
 }
Exemplo n.º 2
0
        public void BSTFindModeTest()
        {
            testTree  test  = new testTree();
            TreeNode  root  = test.buildTreeTest(new object[] { 2, 1, 3, null, null, 2, 4 });
            Findmodes modes = new Findmodes();

            int[] ints = modes.FindMode(root);
        }