public MinSearchTree Clone()
        {
            var tree = new MinSearchTree(_size);

            for (var i = 0; i < 2 << _level; ++i)
            {
                tree._tree[i] = _tree[i];
            }
            return(tree);
        }
Exemplo n.º 2
0
        public MinSearchTree Clone()
        {
            MinSearchTree tree = new MinSearchTree(_size);

            for (int i = 0; i < (2 << _level); ++i)
            {
                tree._tree[i] = _tree[i];
            }
            return(tree);
        }