(TreeNode root)
| 1 | class Solution { |
| 2 | public int maxPathSum(TreeNode root) { |
| 3 | int arr[] = new int[1]; |
| 4 | arr[0] = Integer.MIN_VALUE; |
| 5 | maxiPathSum(root,arr); |
| 6 | return arr[0]; |
| 7 | } |
| 8 | |
| 9 | public int maxiPathSum(TreeNode root, int arr[]) |
| 10 | { |
nothing calls this directly
no test coverage detected