Skip to content

Commit ea643fb

Browse files
authored
chore: update lc problems: No.0235,No.0236,No.0238 (#1514)
1 parent 2fec556 commit ea643fb

File tree

4 files changed

+9
-6
lines changed
  • solution

4 files changed

+9
-6
lines changed

solution/0200-0299/0235.Lowest Common Ancestor of a Binary Search Tree/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020

2121
<pre><strong>输入:</strong> root = [6,2,8,0,4,7,9,null,null,3,5], p = 2, q = 8
2222
<strong>输出:</strong> 6
23-
<strong>解释: </strong>节点 <code>2 </code>和节点 <code>8 </code>的最近公共祖先是 <code>6。</code>
23+
<strong>解释: </strong>节点 2 和节点 8 的最近公共祖先是 6。
2424
</pre>
2525

2626
<p><strong>示例 2:</strong></p>
2727

2828
<pre><strong>输入:</strong> root = [6,2,8,0,4,7,9,null,null,3,5], p = 2, q = 4
2929
<strong>输出:</strong> 2
30-
<strong>解释: </strong>节点 <code>2</code> 和节点 <code>4</code> 的最近公共祖先是 <code>2</code>, 因为根据定义最近公共祖先节点可以为节点本身。</pre>
30+
<strong>解释: </strong>节点 2 和节点 4 的最近公共祖先是 2, 因为根据定义最近公共祖先节点可以为节点本身。</pre>
3131

3232
<p>&nbsp;</p>
3333

solution/0200-0299/0236.Lowest Common Ancestor of a Binary Tree/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
<pre>
1818
<strong>输入:</strong>root = [3,5,1,6,2,0,8,null,null,7,4], p = 5, q = 1
1919
<strong>输出:</strong>3
20-
<strong>解释:</strong>节点 <code>5 </code>和节点 <code>1 </code>的最近公共祖先是节点 <code>3 。</code>
20+
<strong>解释:</strong>节点 5 和节点 1 的最近公共祖先是节点 3 。
2121
</pre>
2222

2323
<p><strong>示例 2:</strong></p>
2424
<img alt="" src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/solution/0200-0299/0236.Lowest%20Common%20Ancestor%20of%20a%20Binary%20Tree/images/binarytree.png" style="width: 200px; height: 190px;" />
2525
<pre>
2626
<strong>输入:</strong>root = [3,5,1,6,2,0,8,null,null,7,4], p = 5, q = 4
2727
<strong>输出:</strong>5
28-
<strong>解释:</strong>节点 <code>5 </code>和节点 <code>4 </code>的最近公共祖先是节点 <code>5 。</code>因为根据定义最近公共祖先节点可以为节点本身。
28+
<strong>解释:</strong>节点 5 和节点 4 的最近公共祖先是节点 5 。因为根据定义最近公共祖先节点可以为节点本身。
2929
</pre>
3030

3131
<p><strong>示例 3:</strong></p>

solution/0200-0299/0238.Product of Array Except Self/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<p><strong>示例 1:</strong></p>
1818

1919
<pre>
20-
<strong>输入:</strong> nums = <code>[1,2,3,4]</code>
21-
<strong>输出:</strong> <code>[24,12,8,6]</code>
20+
<strong>输入:</strong> nums = [1,2,3,4]
21+
<strong>输出:</strong> [24,12,8,6]
2222
</pre>
2323

2424
<p><strong>示例 2:</strong></p>

solution/config.py

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
40,
1010
115,
1111
128,
12+
235,
13+
236,
14+
238,
1215
258,
1316
259,
1417
261,

0 commit comments

Comments
 (0)