removeSubTree() returns a TreeNode, so you can reinsert it
insertSubTree() puts that subtree back.
all non-tree data is lost, like chains and relations. this is a problem because if you remove a subtree, and then undo it, insertsubtree is called.
Log in to post a comment.