How to see the minimum runtime solution?


  • 0
    H

    My solution is this

    		if (root == null) {
    		return 0;
    	}
    
    	return 1 + Math.max(this.maxDepth(root.left), this.maxDepth(root.right));
    

    How to see the minimum runtime solution?

    enter image description here


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.