from top to bottom to get local length of consecutive path use return value to pass the global maximum length Code publicintlongestConsecutive(TreeNoderoot){if(root==null){return0;}returnhelper(root,0,root.val-1);}privateinthelper(TreeNoderoot,intlength,intpreVal){if(root==null){returnlength...