553 Commits

Author SHA1 Message Date
03aeda84e2 Update docs/chapter_computational_complexity/time_complexity.md
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:02:51 +08:00
3fa04aeb4a Update docs/chapter_computational_complexity/time_complexity.md
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:02:19 +08:00
2acf85a626 Update docs/chapter_computational_complexity/time_complexity.md
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:02:09 +08:00
9f7a9fde20 Update codes/typescript/chapter_computational_complexity/time_complexity.ts
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:02:00 +08:00
3906c3df06 Update docs/chapter_computational_complexity/time_complexity.md
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:01:53 +08:00
d5969e4070 Update docs/chapter_computational_complexity/time_complexity.md
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:01:42 +08:00
a29a584b6f Update codes/typescript/chapter_computational_complexity/time_complexity.ts
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:01:28 +08:00
c5a9eea0a9 Update codes/typescript/chapter_computational_complexity/time_complexity.ts
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:01:17 +08:00
abdf1f3117 Update codes/javascript/chapter_computational_complexity/time_complexity.js
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:01:03 +08:00
b5c9db935e Update docs/chapter_computational_complexity/time_complexity.md
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-01-05 01:00:56 +08:00
36e83352b8 lint: added missing comment 2023-01-03 11:17:11 +08:00
23b4aa118b code: added scripts to the doc 2023-01-02 22:07:48 +08:00
92c8d34f13 lint: remove extra indent 2023-01-02 21:53:21 +08:00
63cd3e4f65 lint: added prettier config and switch indent type 2023-01-02 21:16:24 +08:00
621fcb731c lint: switch indent type 2023-01-02 21:01:16 +08:00
d3e15a8856 lint: var to let 2023-01-02 20:52:15 +08:00
db2a91bd93 lint: remove class and main 2023-01-02 20:49:35 +08:00
6e2412f897 lint: code lint 2023-01-02 20:40:01 +08:00
f83dcce346 fix: doesnt return anything 2023-01-02 19:13:36 +08:00
8c736252ab code: transcribe time_complexity.js 2023-01-02 19:10:48 +08:00
2bd24e61a8 code: added doc code 2023-01-02 18:57:26 +08:00
3f00aa39fb code: added code for time complexity chapter 2023-01-02 18:47:36 +08:00
c94101a365 docs: added Typescript and Javascript examples
Not sure whether these formats meet the requirement. If everything is okay I will continue to transcribe more:-)
2023-01-01 19:29:45 +08:00
5ea660a2da Merge pull request #190 from GN-Yu/patch-1
Suggestion on merge_sort.md
2022-12-31 02:25:04 +08:00
327b566ff9 Update merge_sort.ts 2022-12-30 13:23:26 -05:00
506bc009c7 Update merge_sort.py 2022-12-30 13:22:59 -05:00
96355afb1c Update merge_sort.js 2022-12-30 13:22:31 -05:00
6ba808ed36 Update merge_sort.java 2022-12-30 13:22:07 -05:00
5d45f71167 Update merge_sort.go 2022-12-30 13:21:40 -05:00
1b71e74baa Update merge_sort.cs 2022-12-30 13:21:03 -05:00
a03353f8e2 Update merge_sort.cpp 2022-12-30 13:20:25 -05:00
af0ce1f344 Merge branch 'krahets:master' into patch-1 2022-12-30 13:19:21 -05:00
970410a7c3 Merge pull request #195 from hezhizhen/typo
fix typo
2022-12-31 02:02:16 +08:00
507f07ac4b fix typo 2022-12-30 18:37:12 +08:00
0950e43fd7 Merge pull request #178 from guowei-gong/gongguowei
docs(array): sample code for golang
2022-12-30 16:46:18 +08:00
e5497496f9 Update array.md 2022-12-30 16:45:40 +08:00
ae78126d80 Update array.go 2022-12-30 16:44:09 +08:00
f2f476a578 Merge pull request #191 from L-Super/patch-1
Add insertion sort in C
2022-12-30 16:37:53 +08:00
88dfc389b8 Merge pull request #192 from Wonderdch/patch-1
添加 C# 内置的双向队列示例
2022-12-30 16:12:07 +08:00
56b6bf10f8 Update deque.md 2022-12-30 16:11:47 +08:00
11c2bc1a9d Merge pull request #193 from Wonderdch/patch-2
添加 deque.cs
2022-12-30 16:11:02 +08:00
c67363a78e Update deque.cs 2022-12-30 16:10:22 +08:00
2465db1eff Update space_complexity.md
Fix the Go code.
2022-12-30 15:57:15 +08:00
0cf37e3f8e 添加 deque.cs
以 C# 内置的双向队列 LinkedList 为基础,编写了 C# 版本的 deque
2022-12-30 14:35:54 +08:00
d8bf0b02d1 添加 C# 内置的双向队列示例
RT
2022-12-30 14:28:39 +08:00
23bbaf12b9 Merge branch 'krahets:master' into patch-1 2022-12-30 09:30:51 +08:00
0dda12e0ab add insertion sort content 2022-12-30 09:26:26 +08:00
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
4fb267918b docs(array): add file author, created time 2022-12-29 10:06:11 +08:00
047e15e8d5 Merge pull request #183 from guowei-gong/binary_tree
docs(binary_tree): fix comment style and punctuation
2022-12-29 00:50:53 +08:00