private int GetNodeSize(AvlNode <T> node) { if (node.IsNull()) { return(0); } return(1 + GetNodeSize(node.Left) + GetNodeSize(node.Right)); }
private static int GetNodeHeight(AvlNode <T> node) { return(node.IsNull() ? -1 : node.Height); }