Skip to content

chore: update lc problem: No.0038 ~ No.0040 #1382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions solution/0000-0099/0038.Count and Say/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
4. 1211
5. 111221
第一项是数字 1
描述前一项,这个数是 <code>1</code> 即 “ 一 个 1 ”,记作 <code>"11"
</code>描述前一项,这个数是 <code>11</code> 即 “ 二 个 1 ” ,记作 <code>"21"
</code>描述前一项,这个数是 <code>21</code> 即 “ 一 个 2 + 一 个 1 ” ,记作 "<code>1211"
</code>描述前一项,这个数是 <code>1211</code> 即 “ 一 个 1 + 一 个 2 + 二 个 1 ” ,记作 "<code>111221"</code>
描述前一项,这个数是 1 即 “ 一 个 1 ”,记作 "11"
描述前一项,这个数是 11 即 “ 二 个 1 ” ,记作 "21"
描述前一项,这个数是 21 即 “ 一 个 2 + 一 个 1 ” ,记作 "1211"
描述前一项,这个数是 1211 即 “ 一 个 1 + 一 个 2 + 二 个 1 ” ,记作 "111221"
</pre>

<p>要 <strong>描述</strong> 一个数字字符串,首先要将字符串分割为 <strong>最小</strong> 数量的组,每个组都由连续的最多 <strong>相同字符</strong> 组成。然后对于每个组,先描述字符的数量,然后描述字符,形成一个描述组。要将描述转换为数字字符串,先将每组中的字符数量用数字替换,再将所有描述组连接起来。</p>
Expand Down
6 changes: 3 additions & 3 deletions solution/0000-0099/0039.Combination Sum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<p><strong>示例&nbsp;1:</strong></p>

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

<pre>
<strong>输入: </strong>candidates = [2,3,5]<code>, </code>target = 8
<strong>输入: </strong>candidates = [2,3,5], target = 8
<strong>输出: </strong>[[2,2,2,2],[2,3,3],[3,5]]</pre>

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

<pre>
<strong>输入: </strong>candidates = <code>[2], </code>target = 1
<strong>输入: </strong>candidates = [2], target = 1
<strong>输出: </strong>[]
</pre>

Expand Down
2 changes: 1 addition & 1 deletion solution/0000-0099/0040.Combination Sum II/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<p><strong>示例&nbsp;1:</strong></p>

<pre>
<strong>输入:</strong> candidates =&nbsp;<code>[10,1,2,7,6,1,5]</code>, target =&nbsp;<code>8</code>,
<strong>输入:</strong> candidates =&nbsp;[10,1,2,7,6,1,5], target =&nbsp;8,
<strong>输出:</strong>
[
[1,1,6],
Expand Down
3 changes: 3 additions & 0 deletions solution/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
30,
33,
34,
38,
39,
40,
115,
128,
279,
Expand Down