forked fromneetcode-gh/leetcode
- Notifications
You must be signed in to change notification settings - Fork0
Commite2b576f
authored
Diameter of Binary Tree Java code doesn't work
The code did not work for test case 43, so the submission failed. Probably because of how the static variable and static functions work.I've updated the code to suit the video explanation better, and removed "static" keywords.1 parent01a2b36 commite2b576f
1 file changed
+12
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 5 | + | |
| 6 | + | |
26 | 7 | | |
27 | 8 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
32 | 18 | | |
0 commit comments
Comments
(0)