How to augment an AVL tree?
问题 I want to augment an avl tree to add extra properties to each node such as number of nodes it contains (i.e. in its subtree). From this avl java implementation code here http://www.blackbam.at/blackbams-blog/2012/05/04/avl-tree-implementation-in-java/ I want to add certain code to it, so that each node will contain a size element. In the AvlNode class, I changed it to: /** Here is the AVL-Node class for Completenesse **/ public class AvlNode { public AvlNode left; public AvlNode right; public