Skip to content

Commit 8aea3ed

Browse files
authored
feat: update lc problems (doocs#4022)
1 parent 0544a35 commit 8aea3ed

File tree

87 files changed

+271
-60
lines changed

Some content is hidden

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

87 files changed

+271
-60
lines changed

solution/0000-0099/0047.Permutations II/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/0000-0099/0047.Pe
55
tags:
66
- 数组
77
- 回溯
8+
- 排序
89
---
910

1011
<!-- problem:start -->

solution/0000-0099/0047.Permutations II/README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/0000-0099/0047.Pe
55
tags:
66
- Array
77
- Backtracking
8+
- Sorting
89
---
910

1011
<!-- problem:start -->

solution/0600-0699/0691.Stickers to Spell Word/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ difficulty: 困难
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/0600-0699/0691.Stickers%20to%20Spell%20Word/README.md
55
tags:
66
- 位运算
7+
- 记忆化搜索
78
- 数组
9+
- 哈希表
810
- 字符串
911
- 动态规划
1012
- 回溯

solution/0600-0699/0691.Stickers to Spell Word/README_EN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ difficulty: Hard
44
edit_url: https://github.com/doocs/leetcode/edit/main/solution/0600-0699/0691.Stickers%20to%20Spell%20Word/README_EN.md
55
tags:
66
- Bit Manipulation
7+
- Memoization
78
- Array
9+
- Hash Table
810
- String
911
- Dynamic Programming
1012
- Backtracking

solution/0900-0999/0906.Super Palindromes/README.md

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,40 @@ tags:
1818

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

21-
<p>如果一个正整数自身是回文数,而且它也是一个回文数的平方,那么我们称这个数为超级回文数。</p>
21+
<p>如果一个正整数自身是回文数,而且它也是一个回文数的平方,那么我们称这个数为 <strong>超级回文数</strong> 。</p>
2222

23-
<p>现在,给定两个正整数&nbsp;<code>L</code> 和&nbsp;<code>R</code> (以字符串形式表示),返回包含在范围 <code>[L, R]</code> 中的超级回文数的数目。</p>
23+
<p>现在,给你两个以字符串形式表示的正整数 <font color="#c7254e" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="caret-color: rgb(199, 37, 78); font-size: 12.6px; background-color: rgb(249, 242, 244);">left</span></font>&nbsp;和 <font color="#c7254e" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="caret-color: rgb(199, 37, 78); font-size: 12.6px; background-color: rgb(249, 242, 244);">right</span></font>&nbsp; ,统计并返回区间&nbsp;<code>[left, right]</code> 中的 <strong>超级回文数</strong> 的数目。</p>
2424

2525
<p>&nbsp;</p>
2626

27-
<p><strong>示例:</strong></p>
27+
<p><b>示例 1:</b></p>
2828

29-
<pre><strong>输入:</strong>L = &quot;4&quot;, R = &quot;1000&quot;
30-
<strong>输出:</strong>4
31-
<strong>解释:
32-
</strong>4,9,121,以及 484 是超级回文数。
33-
注意 676 不是一个超级回文数: 26 * 26 = 676,但是 26 不是回文数。</pre>
29+
<pre>
30+
<b>输入:</b>left = "4", right = "1000"
31+
<b>输出:</b>4
32+
<b>解释:</b>4、9、121 和 484 都是超级回文数。
33+
注意 676 不是超级回文数:26 * 26 = 676 ,但是 26 不是回文数。
34+
</pre>
3435

35-
<p>&nbsp;</p>
36-
37-
<p><strong>提示:</strong></p>
36+
<p><b>示例 2:</b></p>
3837

39-
<ol>
40-
<li><code>1 &lt;= len(L) &lt;= 18</code></li>
41-
<li><code>1 &lt;= len(R) &lt;= 18</code></li>
42-
<li><code>L</code> 和&nbsp;<code>R</code>&nbsp;是表示&nbsp;<code>[1, 10^18)</code>&nbsp;范围的整数的字符串。</li>
43-
<li><code>int(L) &lt;= int(R)</code></li>
44-
</ol>
38+
<pre>
39+
<b>输入:</b>left = "1", right = "2"
40+
<b>输出:</b>1
41+
</pre>
4542

4643
<p>&nbsp;</p>
4744

45+
<p><b>提示:</b></p>
46+
47+
<ul>
48+
<li><code>1 &lt;= left.length, right.length &lt;= 18</code></li>
49+
<li><code>left</code>&nbsp;和&nbsp;<code>right</code>&nbsp;仅由数字(0 - 9)组成。</li>
50+
<li><code>left</code>&nbsp;和&nbsp;<code>right</code>&nbsp;不含前导零。</li>
51+
<li><code>left</code>&nbsp;和&nbsp;<code>right</code>&nbsp;表示的整数在区间&nbsp;<code>[1, 10<sup>18</sup> - 1]</code> 内。</li>
52+
<li><code>left</code>&nbsp;小于等于&nbsp;<code>right</code>&nbsp;。</li>
53+
</ul>
54+
4855
<!-- description:end -->
4956

5057
## 解法

solution/1700-1799/1752.Check if Array Is Sorted and Rotated/README_EN.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tags:
3131
<strong>Input:</strong> nums = [3,4,5,1,2]
3232
<strong>Output:</strong> true
3333
<strong>Explanation:</strong> [1,2,3,4,5] is the original sorted array.
34-
You can rotate the array by x = 3 positions to begin on the the element of value 3: [3,4,5,1,2].
34+
You can rotate the array by x = 3 positions to begin on the element of value 3: [3,4,5,1,2].
3535
</pre>
3636

3737
<p><strong class="example">Example 2:</strong></p>
@@ -51,6 +51,24 @@ You can rotate the array by x = 3 positions to begin on the the element of value
5151
You can rotate the array by x = 0 positions (i.e. no rotation) to make nums.
5252
</pre>
5353

54+
<div class="simple-translate-system-theme" id="simple-translate">
55+
<div>
56+
<div class="simple-translate-button " style="background-image: url(&quot;moz-extension://8a9ffb6b-7e69-4e93-aae1-436a1448eff6/icons/512.png&quot;); height: 22px; width: 22px; top: 10px; left: 10px;">&nbsp;</div>
57+
58+
<div class="simple-translate-panel " style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px;">
59+
<div class="simple-translate-result-wrapper" style="overflow: hidden;">
60+
<div class="simple-translate-move" draggable="true">&nbsp;</div>
61+
62+
<div class="simple-translate-result-contents">
63+
<p class="simple-translate-result" dir="auto">&nbsp;</p>
64+
65+
<p class="simple-translate-candidate" dir="auto">&nbsp;</p>
66+
</div>
67+
</div>
68+
</div>
69+
</div>
70+
</div>
71+
5472
<p>&nbsp;</p>
5573
<p><strong>Constraints:</strong></p>
5674

solution/1900-1999/1911.Maximum Alternating Subsequence Sum/README.md

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

1212
<!-- problem:start -->
1313

14-
# [1911. 最大子序列交替和](https://leetcode.cn/problems/maximum-alternating-subsequence-sum)
14+
# [1911. 最大交替子序列和](https://leetcode.cn/problems/maximum-alternating-subsequence-sum)
1515

1616
[English Version](/solution/1900-1999/1911.Maximum%20Alternating%20Subsequence%20Sum/README_EN.md)
1717

solution/2300-2399/2360.Longest Cycle in a Graph/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ rating: 1897
66
source: 第 304 场周赛 Q4
77
tags:
88
- 深度优先搜索
9+
- 广度优先搜索
910
-
1011
- 拓扑排序
1112
---

solution/2300-2399/2360.Longest Cycle in a Graph/README_EN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ rating: 1897
66
source: Weekly Contest 304 Q4
77
tags:
88
- Depth-First Search
9+
- Breadth-First Search
910
- Graph
1011
- Topological Sort
1112
---

solution/2400-2499/2493.Divide Nodes Into the Maximum Number of Groups/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edit_url: https://github.com/doocs/leetcode/edit/main/solution/2400-2499/2493.Di
55
rating: 2415
66
source: 第 322 场周赛 Q4
77
tags:
8+
- 深度优先搜索
89
- 广度优先搜索
910
- 并查集
1011
-

0 commit comments

Comments
 (0)