public static int nodeSize;
/**
* 获取树中节点的个数:遍历思路
*/
//public int size;
void size(TreeNode root) {
if(root == null){
return ;
}
nodeSize++;
size(root.left);
size(root.right);
}