Created
August 17, 2018 14:58
-
-
Save yohey03518/a2f8499a9018976a9d35d02da87dc4de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public int MaxDepth(TreeNode root) | |
{ | |
if (root.left == null && root.right == null) | |
return 1; | |
else | |
throw new NotImplementedException(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment