(TreeNode root)
| 1 | class Solution { |
| 2 | public int maxDepth(TreeNode root) { |
| 3 | if(root==null) return 0; |
| 4 | int lh = maxDepth(root.left); |
| 5 | int rh = maxDepth(root.right); |
| 6 | return 1+Math.max(lh,rh); |
| 7 | } |
| 8 | } |
nothing calls this directly
no outgoing calls
no test coverage detected