Skip to content

Commit dd07fd0

Browse files
authored
chore: update lc problem: No.0038 ~ No.0040 (doocs#1382)
1 parent 1c5e57c commit dd07fd0

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

solution/0000-0099/0038.Count and Say/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
4. 1211
2727
5. 111221
2828
第一项是数字 1
29-
描述前一项,这个数是 <code>1</code> 即 “ 一 个 1 ”,记作 <code>"11"
30-
</code>描述前一项,这个数是 <code>11</code> 即 “ 二 个 1 ” ,记作 <code>"21"
31-
</code>描述前一项,这个数是 <code>21</code> 即 “ 一 个 2 + 一 个 1 ” ,记作 "<code>1211"
32-
</code>描述前一项,这个数是 <code>1211</code> 即 “ 一 个 1 + 一 个 2 + 二 个 1 ” ,记作 "<code>111221"</code>
29+
描述前一项,这个数是 1 即 “ 一 个 1 ”,记作 "11"
30+
描述前一项,这个数是 11 即 “ 二 个 1 ” ,记作 "21"
31+
描述前一项,这个数是 21 即 “ 一 个 2 + 一 个 1 ” ,记作 "1211"
32+
描述前一项,这个数是 1211 即 “ 一 个 1 + 一 个 2 + 二 个 1 ” ,记作 "111221"
3333
</pre>
3434

3535
<p>要 <strong>描述</strong> 一个数字字符串,首先要将字符串分割为 <strong>最小</strong> 数量的组,每个组都由连续的最多 <strong>相同字符</strong> 组成。然后对于每个组,先描述字符的数量,然后描述字符,形成一个描述组。要将描述转换为数字字符串,先将每组中的字符数量用数字替换,再将所有描述组连接起来。</p>

solution/0000-0099/0039.Combination Sum/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<p><strong>示例&nbsp;1:</strong></p>
1818

1919
<pre>
20-
<strong>输入:</strong>candidates = <code>[2,3,6,7], </code>target = <code>7</code>
20+
<strong>输入:</strong>candidates = [2,3,6,7], target = 7
2121
<strong>输出:</strong>[[2,2,3],[7]]
2222
<strong>解释:</strong>
2323
2 和 3 可以形成一组候选,2 + 2 + 3 = 7 。注意 2 可以使用多次。
@@ -27,13 +27,13 @@
2727
<p><strong>示例&nbsp;2:</strong></p>
2828

2929
<pre>
30-
<strong>输入: </strong>candidates = [2,3,5]<code>, </code>target = 8
30+
<strong>输入: </strong>candidates = [2,3,5], target = 8
3131
<strong>输出: </strong>[[2,2,2,2],[2,3,3],[3,5]]</pre>
3232

3333
<p><strong>示例 3:</strong></p>
3434

3535
<pre>
36-
<strong>输入: </strong>candidates = <code>[2], </code>target = 1
36+
<strong>输入: </strong>candidates = [2], target = 1
3737
<strong>输出: </strong>[]
3838
</pre>
3939

solution/0000-0099/0040.Combination Sum II/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<p><strong>示例&nbsp;1:</strong></p>
1818

1919
<pre>
20-
<strong>输入:</strong> candidates =&nbsp;<code>[10,1,2,7,6,1,5]</code>, target =&nbsp;<code>8</code>,
20+
<strong>输入:</strong> candidates =&nbsp;[10,1,2,7,6,1,5], target =&nbsp;8,
2121
<strong>输出:</strong>
2222
[
2323
[1,1,6],

solution/config.py

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
30,
55
33,
66
34,
7+
38,
8+
39,
9+
40,
710
115,
811
128,
912
279,

0 commit comments

Comments
 (0)