Skip to content

Commit c24623a

Browse files
committedAug 13, 2022
style: format all python code
1 parent 4a1ea8f commit c24623a

File tree

2,416 files changed

+7787
-1276
lines changed

Some content is hidden

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

2,416 files changed

+7787
-1276
lines changed
 

‎.prettierignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.idea/
2+
.github/
3+
node_modules/
4+
/solution/CONTEST_README.md
5+
/solution/CONTEST_README_EN.md
6+
/solution/summary.md
7+
/solution/summary_en.md
8+
/solution/README.md
9+
/solution/README_EN.md
10+
/solution/readme_template.md
11+
/solution/readme_template_en.md
12+
/solution/problem_readme_template.md
13+
/solution/problem_readme_template_en.md
14+
/solution/bash_problem_readme_template.md
15+
/solution/bash_problem_readme_template_en.md

‎basic/sorting/InsertionSort/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,16 @@ def insertion_sort(array):
198198
for i in range(len(array)):
199199
cur_index = i
200200
while array[cur_index - 1] > array[cur_index] and cur_index - 1 >= 0:
201-
array[cur_index], array[cur_index - 1] = array[cur_index - 1], array[cur_index]
201+
array[cur_index], array[cur_index - 1] = (
202+
array[cur_index - 1],
203+
array[cur_index],
204+
)
202205
cur_index -= 1
203206
return array
204207

208+
205209
array = [10, 17, 50, 7, 30, 24, 27, 45, 15, 5, 36, 21]
206210
print(insertion_sort(array))
207-
208211
```
209212

210213
<!-- tabs:end -->

0 commit comments

Comments
 (0)
Please sign in to comment.