Skip to content

Commit 37516b7

Browse files
authoredAug 3, 2023
chore: update lc problems (doocs#1379)
1 parent 9981d45 commit 37516b7

File tree

59 files changed

+423
-371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+423
-371
lines changed
 

‎solution/0000-0099/0021.Merge Two Sorted Lists/README_EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<p>You are given the heads of two sorted linked lists <code>list1</code> and <code>list2</code>.</p>
88

9-
<p>Merge the two lists in a one <strong>sorted</strong> list. The list should be made by splicing together the nodes of the first two lists.</p>
9+
<p>Merge the two lists into one <strong>sorted</strong> list. The list should be made by splicing together the nodes of the first two lists.</p>
1010

1111
<p>Return <em>the head of the merged linked list</em>.</p>
1212

‎solution/0100-0199/0104.Maximum Depth of Binary Tree/README.md

+27-11
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,38 @@
66

77
<!-- 这里写题目描述 -->
88

9-
<p>给定一个二叉树,找出其最大深度。</p>
9+
<p>给定一个二叉树 <code>root</code> ,返回其最大深度。</p>
1010

11-
<p>二叉树的深度为根节点到最远叶子节点的最长路径上的节点数。</p>
11+
<p>二叉树的 <strong>最大深度</strong> 是指从根节点到最远叶子节点的最长路径上的节点数。</p>
1212

13-
<p><strong>说明:</strong>&nbsp;叶子节点是指没有子节点的节点。</p>
13+
<p>&nbsp;</p>
1414

15-
<p><strong>示例:</strong><br>
16-
给定二叉树 <code>[3,9,20,null,null,15,7]</code>,</p>
15+
<p><strong>示例 1:</strong></p>
1716

18-
<pre> 3
19-
/ \
20-
9 20
21-
/ \
22-
15 7</pre>
17+
<p><img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0100-0199/0104.Maximum%20Depth%20of%20Binary%20Tree/images/tmp-tree.jpg" style="width: 400px; height: 277px;" /></p>
2318

24-
<p>返回它的最大深度&nbsp;3 。</p>
19+
<p>&nbsp;</p>
20+
21+
<pre>
22+
<b>输入:</b>root = [3,9,20,null,null,15,7]
23+
<b>输出:</b>3
24+
</pre>
25+
26+
<p><strong>示例 2:</strong></p>
27+
28+
<pre>
29+
<b>输入:</b>root = [1,null,2]
30+
<b>输出:</b>2
31+
</pre>
32+
33+
<p>&nbsp;</p>
34+
35+
<p><strong>提示:</strong></p>
36+
37+
<ul>
38+
<li>树中节点的数量在&nbsp;<code>[0, 10<sup>4</sup>]</code>&nbsp;区间内。</li>
39+
<li><code>-100 &lt;= Node.val &lt;= 100</code></li>
40+
</ul>
2541

2642
## 解法
2743

0 commit comments

Comments
 (0)