• + 0 comments

    // the function code will be simply............. public static int utopianTree(int n) { int height=1; for(int i=0;i

        }
        else{
            height=height+1;
        }
    }
    return height;
    
    }
    

    }