Commit graph

137 commits

Author SHA1 Message Date
Yudong Jin
694ea4f665 Modify 。** to **。 for better visualization. 2023-01-07 20:34:32 +08:00
Yuelin Xin
c8dac9b5c1
修改错别字 2023-01-06 20:08:25 +00:00
Yudong Jin
75217d5e8b Update bubble sort (C) and insertion sort (C). 2023-01-06 03:31:58 +08:00
GN-Yu
af0ce1f344
Merge branch 'krahets:master' into patch-1 2022-12-30 13:19:21 -05:00
L-Super
23bbaf12b9
Merge branch 'krahets:master' into patch-1 2022-12-30 09:30:51 +08:00
Listening
0dda12e0ab add insertion sort content 2022-12-30 09:26:26 +08:00
GN-Yu
4ca09c1015
Update merge_sort.md
修改了代码注释使其表述更严谨,如C++中:

for (int k = left; k <= right; k++) {
            // 若“左子数组已全部合并完”,则选取右子数组元素,并且 j++
            if (i > leftEnd)
                nums[k] = tmp[j++];
            // 否则,若“右子数组已全部合并完”或“左子数组元素 <ins> <= </ins> 右子数组元素”,则选取左子数组元素,并且 i++
            else if (j > rightEnd || tmp[i] <= tmp[j])
                nums[k] = tmp[i++];
            // 否则,若<ins>“左右子数组都未全部合并完”且“左子数组元素 > 右子数组元素”</ins>,则选取右子数组元素,并且 j++
            else
                nums[k] = tmp[j++];
        }
2022-12-29 17:50:02 -05:00
Yudong Jin
34ad07bfed Fine tune 2022-12-27 20:11:22 +08:00
L-Super
75be76cebe
Update bubble_sort.md
fixed `falg` to `flag`
2022-12-26 12:11:21 +08:00
L-Super
770e3ca4ce
Update bubble_sort.md
C++使用std::swap()交换数组,同时添加C语言代码,作为原始C++代码的补充
2022-12-26 10:17:35 +08:00
Yudong Jin
8733557f00 Update C# code. 2022-12-24 17:05:58 +08:00
Yudong Jin
b1645c7d7e Fine tune 2022-12-24 16:15:41 +08:00
zhuzhiqing
a427cb1b4d 完善所以c#相关的文档和代码 2022-12-23 15:42:02 +08:00
Yudong Jin
f3ef226874 Remove the spaces between “ ” and 中文 aside. 2022-12-21 01:37:58 +08:00
iron-irax
15e964973a
Update intro_to_sort.md
字符缺失 : "相等素"->"相等元素"
2022-12-16 17:05:07 +08:00
liuxjerry
3c59eeab0e
Update intro_to_sort.md 2022-12-15 09:53:32 +08:00
machangxin
4d3128a4a7 merge sort using go 2022-12-13 14:24:17 +08:00
Yudong Jin
58ca52d8ab
Merge pull request #98 from justin-tse/dev-sorting-js
Add the TypeScript code and docs for Chapter of Sorting
2022-12-13 00:35:45 +08:00
justin
14e14677cd Add the TypeScript code to docs (Chapter of Sorting) 2022-12-12 23:18:12 +08:00
machangxin
e862a06c4c Quick sort using go 2022-12-12 21:33:53 +08:00
machangxin
e2ae907cd1 Insertion sort using go 2022-12-12 18:50:22 +08:00
machangxin
51a6f374a7 Insertion sort using go 2022-12-12 18:32:58 +08:00
Yudong Jin
0eebeea530 Update table of content 2022-12-11 03:06:22 +08:00
Yudong Jin
122b0eca26 Update figures. 2022-12-10 02:29:44 +08:00
Yudong Jin
c8336df86d Fix array.md 2022-12-09 21:47:24 +08:00
chenshilong
10b1216675 bubble sort using go 2022-12-06 23:41:12 +08:00
Yudong Jin
9bd5980a81 Organizing all the code blocks. 2022-12-03 01:31:29 +08:00
Yudong Jin
1728be1e61
Update quick_sort.md
Fix indentation
2022-12-01 22:39:31 +08:00
IsChristina
7eea137c28 add sort for javascript codes 2022-12-01 18:28:57 +08:00
Yudong Jin
19a4ccd86a Add cpp codes for the chapter
computational complexity, sorting, searching.
2022-11-27 04:20:30 +08:00
Yudong Jin
9f883d5888 1. Fix the import error.
2. Some codes fine tuning.
2022-11-26 01:40:49 +08:00
krahets
33237373e3 Add about me. Update contribution, suggestions,
merge_sort, installation, introduction, etc.
2022-11-24 19:32:32 +08:00
krahets
0a52e531c1 Add merge sort, and sorting algorithm. 2022-11-24 01:12:14 +08:00
krahets
4290026e0e deploy 2022-11-23 21:39:39 +08:00
krahets
faba5af781 Update README 2022-11-23 15:50:59 +08:00
krahets
550024f69b Add quick sort. 2022-11-23 03:56:25 +08:00
krahets
33d79ea6da Update docs for deployment on Vercel. 2022-11-22 17:47:26 +08:00