Skip to content

Commit c66687a

Browse files
authored
feat: update lc problems (doocs#3660)
1 parent 64c12b1 commit c66687a

File tree

26 files changed

+79
-35
lines changed

26 files changed

+79
-35
lines changed

solution/0100-0199/0160.Intersection of Two Linked Lists/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ tags:
7777

7878
<pre>
7979
<strong>输入:</strong>intersectVal = 0, listA = [2,6,4], listB = [1,5], skipA = 3, skipB = 2
80-
<strong>输出:</strong>null
80+
<strong>输出:</strong>No intersection
8181
<strong>解释:</strong>从各自的表头开始算起,链表 A 为 [2,6,4],链表 B 为 [1,5]。
8282
由于这两个链表不相交,所以 intersectVal 必须为 0,而 skipA 和 skipB 可以是任意值。
8383
这两个链表不相交,因此返回 null 。

solution/0100-0199/0160.Intersection of Two Linked Lists/README_EN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ Explanation: The two lists do not intersect, so return null.
7777
<li>The number of nodes of <code>listB</code> is in the <code>n</code>.</li>
7878
<li><code>1 &lt;= m, n &lt;= 3 * 10<sup>4</sup></code></li>
7979
<li><code>1 &lt;= Node.val &lt;= 10<sup>5</sup></code></li>
80-
<li><code>0 &lt;= skipA &lt;&nbsp;m</code></li>
81-
<li><code>0 &lt;= skipB &lt;&nbsp;n</code></li>
80+
<li><code>0 &lt;= skipA &lt;= m</code></li>
81+
<li><code>0 &lt;= skipB &lt;= n</code></li>
8282
<li><code>intersectVal</code> is <code>0</code> if <code>listA</code> and <code>listB</code> do not intersect.</li>
8383
<li><code>intersectVal == listA[skipA] == listB[skipB]</code> if <code>listA</code> and <code>listB</code> intersect.</li>
8484
</ul>

solution/0100-0199/0191.Number of 1 Bits/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tags:
1717

1818
<!-- description:start -->
1919

20-
<p>编写一个函数,获取一个正整数的二进制形式并返回其二进制表达式中 <span data-keyword="set-bit">设置位</span> 的个数(也被称为<a href="https://baike.baidu.com/item/%E6%B1%89%E6%98%8E%E9%87%8D%E9%87%8F" target="_blank">汉明重量</a>)。</p>
20+
<p>给定一个正整数 <code>n</code>,编写一个函数,获取一个正整数的二进制形式并返回其二进制表达式中 <span data-keyword="set-bit">设置位</span> 的个数(也被称为<a href="https://baike.baidu.com/item/%E6%B1%89%E6%98%8E%E9%87%8D%E9%87%8F" target="_blank">汉明重量</a>)。</p>
2121

2222
<p>&nbsp;</p>
2323

solution/1800-1899/1808.Maximize Number of Nice Divisors/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ source: 第 234 场周赛 Q4
77
tags:
88
- 递归
99
- 数学
10+
- 数论
1011
---
1112

1213
<!-- problem:start -->

solution/1800-1899/1808.Maximize Number of Nice Divisors/README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ source: Weekly Contest 234 Q4
77
tags:
88
- Recursion
99
- Math
10+
- Number Theory
1011
---
1112

1213
<!-- problem:start -->

solution/3000-3099/3043.Find the Length of the Longest Common Prefix/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tags:
2525

2626
<p>正整数的 <strong>前缀 </strong>是其 <strong>最左边 </strong>的一位或多位数字组成的整数。例如,<code>123</code> 是整数 <code>12345</code> 的前缀,而 <code>234</code><strong> 不是 </strong>。</p>
2727

28-
<p>设若整数 <code>c</code> 是整数 <code>a</code> 和 <code>b</code> 的<strong> 公共前缀 </strong>,那么 <code>c</code> 需要同时是 <code>a</code> 和 <code>b</code> 的前缀。例如,<code>5655359</code> 和 <code>56554</code> 有公共前缀 <code>565</code> ,而 <code>1223</code> 和 <code>43456</code><strong> 没有 </strong>公共前缀。</p>
28+
<p>设若整数 <code>c</code> 是整数 <code>a</code> 和 <code>b</code> 的<strong> 公共前缀 </strong>,那么 <code>c</code> 需要同时是 <code>a</code> 和 <code>b</code> 的前缀。例如,<code>5655359</code> 和 <code>56554</code> 有公共前缀 <code>565</code>&nbsp;和 <code>5655</code>,而 <code>1223</code> 和 <code>43456</code><strong> 没有 </strong>公共前缀。</p>
2929

3030
<p>你需要找出属于 <code>arr1</code> 的整数 <code>x</code> 和属于 <code>arr2</code> 的整数 <code>y</code> 组成的所有数对 <code>(x, y)</code> 之中最长的公共前缀的长度。</p>
3131

solution/3000-3099/3043.Find the Length of the Longest Common Prefix/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tags:
2525

2626
<p>A <strong>prefix</strong> of a positive integer is an integer formed by one or more of its digits, starting from its <strong>leftmost</strong> digit. For example, <code>123</code> is a prefix of the integer <code>12345</code>, while <code>234</code> is <strong>not</strong>.</p>
2727

28-
<p>A <strong>common prefix</strong> of two integers <code>a</code> and <code>b</code> is an integer <code>c</code>, such that <code>c</code> is a prefix of both <code>a</code> and <code>b</code>. For example, <code>5655359</code> and <code>56554</code> have a common prefix <code>565</code> while <code>1223</code> and <code>43456</code> <strong>do not</strong> have a common prefix.</p>
28+
<p>A <strong>common prefix</strong> of two integers <code>a</code> and <code>b</code> is an integer <code>c</code>, such that <code>c</code> is a prefix of both <code>a</code> and <code>b</code>. For example, <code>5655359</code> and <code>56554</code> have common prefixes <code>565</code> and <code>5655</code> while <code>1223</code> and <code>43456</code> <strong>do not</strong> have a common prefix.</p>
2929

3030
<p>You need to find the length of the <strong>longest common prefix</strong> between all pairs of integers <code>(x, y)</code> such that <code>x</code> belongs to <code>arr1</code> and <code>y</code> belongs to <code>arr2</code>.</p>
3131

solution/3300-3399/3323.Minimize Connected Groups by Inserting Interval/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3323.Minimize%20Connected%20Groups%20by%20Inserting%20Interval/README.md
5+
tags:
6+
- 数组
7+
- 二分查找
8+
- 排序
59
---
610

711
<!-- problem:start -->

solution/3300-3399/3323.Minimize Connected Groups by Inserting Interval/README_EN.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
comments: true
33
difficulty: Medium
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3323.Minimize%20Connected%20Groups%20by%20Inserting%20Interval/README_EN.md
5+
tags:
6+
- Array
7+
- Binary Search
8+
- Sorting
59
---
610

711
<!-- problem:start -->

solution/3300-3399/3324.Find the Sequence of Strings Appeared on the Screen/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
comments: true
33
difficulty: 中等
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/3300-3399/3324.Find%20the%20Sequence%20of%20Strings%20Appeared%20on%20the%20Screen/README.md
5+
tags:
6+
- 字符串
7+
- 模拟
58
---
69

710
<!-- problem:start -->

0 commit comments

Comments
 (0)