You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: solution/0100-0199/0104.Maximum Depth of Binary Tree/README_EN.md
+69-26
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,8 @@
6
6
7
7
<p>Given the <code>root</code> of a binary tree, return <em>its maximum depth</em>.</p>
8
8
9
-
10
-
11
9
<p>A binary tree's <strong>maximum depth</strong> is the number of nodes along the longest path from the root node down to the farthest leaf node.</p>
12
10
13
-
14
-
15
11
<p> </p>
16
12
17
13
<p><strong>Example 1:</strong></p>
@@ -26,12 +22,8 @@
26
22
27
23
</pre>
28
24
29
-
30
-
31
25
<p><strong>Example 2:</strong></p>
32
26
33
-
34
-
35
27
<pre>
36
28
37
29
<strong>Input:</strong> root = [1,null,2]
@@ -40,12 +32,8 @@
40
32
41
33
</pre>
42
34
43
-
44
-
45
35
<p><strong>Example 3:</strong></p>
46
36
47
-
48
-
49
37
<pre>
50
38
51
39
<strong>Input:</strong> root = []
@@ -54,12 +42,8 @@
54
42
55
43
</pre>
56
44
57
-
58
-
59
45
<p><strong>Example 4:</strong></p>
60
46
61
-
62
-
63
47
<pre>
64
48
65
49
<strong>Input:</strong> root = [0]
@@ -68,14 +52,10 @@
68
52
69
53
</pre>
70
54
71
-
72
-
73
55
<p> </p>
74
56
75
57
<p><strong>Constraints:</strong></p>
76
58
77
-
78
-
79
59
<ul>
80
60
<li>The number of nodes in the tree is in the range <code>[0, 10<sup>4</sup>]</code>.</li>
0 commit comments