Skip to content

Commit f0cda23

Browse files
authored
docs: update lc problem: No.1187 (doocs#1319)
No.11877.Make Array Strictly Increasing
1 parent 7c61dd5 commit f0cda23

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

run_format.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def format_inline_code(path: str):
8383
os.system(f'npx clang-format -i --style=file "{file}"')
8484
with open(file, 'r', encoding='utf-8') as f:
8585
new_block = f.read()
86+
if not new_block.endswith('\n'):
87+
new_block += '\n'
8688
content = content.replace(block, new_block)
8789
os.remove(file)
8890
elif suf == 'python':
@@ -106,7 +108,7 @@ def run():
106108
os.system(f'npx clang-format -i --style=file "{path}"')
107109

108110
# format with prettier
109-
os.system('npx prettier --write "**/*.{md,js,ts,php}"')
111+
os.system('npx prettier --write "**/*.{md,js,ts,php,sql}"')
110112

111113
# format with gofmt
112114
os.system('gofmt -w .')

solution/1100-1199/1187.Make Array Strictly Increasing/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<pre>
2828
<strong>输入:</strong>arr1 = [1,5,3,6,7], arr2 = [4,3,1]
2929
<strong>输出:</strong>2
30-
<strong>解释:</strong>用 3 来替换 5,然后用 4 来替换 3,得到arr1 = [1, 3, 4, 6, 7]。
30+
<strong>解释:</strong>用 3 来替换 5,然后用 4 来替换 3,得到 arr1 = [1, 3, 4, 6, 7]。
3131
</pre>
3232

3333
<p><strong class="example">示例&nbsp;3:</strong></p>

solution/1100-1199/1187.Make Array Strictly Increasing/README_EN.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@
1616
<pre>
1717
<strong>Input:</strong> arr1 = [1,5,3,6,7], arr2 = [1,3,2,4]
1818
<strong>Output:</strong> 1
19-
<strong>Explanation:</strong> Replace <code>5</code> with <code>2</code>, then <code>arr1 = [1, 2, 3, 6, 7]</code>.
19+
<strong>Explanation:</strong> Replace 5 with 2, then arr1 = [1, 2, 3, 6, 7].
2020
</pre>
2121

2222
<p><strong class="example">Example 2:</strong></p>
2323

2424
<pre>
2525
<strong>Input:</strong> arr1 = [1,5,3,6,7], arr2 = [4,3,1]
2626
<strong>Output:</strong> 2
27-
<strong>Explanation:</strong> Replace <code>5</code> with <code>3</code> and then replace <code>3</code> with <code>4</code>. <code>arr1 = [1, 3, 4, 6, 7]</code>.
27+
<strong>Explanation:</strong> Replace 5 with 3 and then replace 3 with 4. arr1 = [1, 3, 4, 6, 7].
2828
</pre>
2929

3030
<p><strong class="example">Example 3:</strong></p>
3131

3232
<pre>
3333
<strong>Input:</strong> arr1 = [1,5,3,6,7], arr2 = [1,6,3,3]
3434
<strong>Output:</strong> -1
35-
<strong>Explanation:</strong> You can&#39;t make <code>arr1</code> strictly increasing.</pre>
35+
<strong>Explanation:</strong> You can&#39;t make arr1 strictly increasing.</pre>
3636

3737
<p>&nbsp;</p>
3838
<p><strong>Constraints:</strong></p>

0 commit comments

Comments
 (0)