Ejemplo n.º 1
0
        public void ListLevelBuilder()
        {
            int[]             arr         = new int[] { 1, 2, 3, 4, 5, 6 };
            SearchTreeBuilder treeBuilder = new SearchTreeBuilder();
            var tree = treeBuilder.BuildFromSortedArray(arr);

            ListLevelBuilder builder = new ListLevelBuilder();
            List <LinkedList <SearchNode> > lists = builder.BuildLists(tree);
        }
Ejemplo n.º 2
0
 public void SearchTree()
 {
     int[]             arr     = new int[] { 1, 2, 3, 4, 5, 6 };
     SearchTreeBuilder builder = new SearchTreeBuilder();
     var result = builder.BuildFromSortedArray(arr);
 }