Skip to content

Commit f8cbd1c

Browse files
authored
Update index.ts
1 parent f713ea7 commit f8cbd1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

longest-univalue-path/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if(!root)return 0
99

1010
dfs(root,s=>res=Math.max(res,s));
1111
return res;
12-
};
12+
}
1313
function dfs(root: TreeNode | null,out:(s:number)=>void) {
1414
if (!root) {
1515
return 0;

0 commit comments

Comments
 (0)