Exemple #1
0
        //Leet code 104:
        public int GetDepth(TreeNodeV3 node)
        {
            if (node == null)
            {
                return(0);
            }

            return(Math.Max(GetDepth(node.Left), GetDepth(node.Right)) + 1);
        }
Exemple #2
0
 public int IsSameTree(TreeNodeV3 node)
 {
     return(0);
 }