Commit graph

44 commits

Author SHA1 Message Date
krahets
ecbf2d1560 1. Add build script for Java.
2. Add height limitation for code blocks in extra.css.
3. Fix "节点" to "结点".
2023-02-07 04:43:52 +08:00
krahets
ea901af217 1. Add the building util of Python
for the markdown docs.
2. Update the deploy.sh
2023-02-06 23:23:21 +08:00
Yudong Jin
a95fe26303 Fix Python code styles.
Update hash_map.
2023-02-03 20:03:30 +08:00
sjinzh
15efaca85d
copy zig codes of chapter_array_and_linkedlist and chapter_computatio… (#319)
* copy zig codes of chapter_array_and_linkedlist and chapter_computational_complexity to markdown files

* Update time_complexity.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-03 19:15:34 +08:00
Yudong Jin
7ce7386bab Add Zig code blocks. 2023-02-01 22:03:04 +08:00
Yudong Jin
eb0afc98ec Number the H1 and H2 headings. 2023-01-31 03:37:50 +08:00
Yudong Jin
70c1dba1cd Update a comment in randomAccess() 2023-01-17 02:10:52 +08:00
weibk
dab16ee53a
update python randomAccess
random.randomint(start, stop) 返回  数字的范围是 [start, stop] 是一个闭区间, 如果用len(nums) 有可能会索引超出范围
2023-01-16 18:12:38 +08:00
Yudong Jin
bb657f9517 Add destructors to the C++ codes. 2023-01-14 19:52:11 +08:00
Yudong Jin
aaa2ff29f9 Fix all the ** (bolded symbols). 2023-01-09 22:39:30 +08:00
nuomi1
3b52df2a8f
style: update comment format 2023-01-08 20:53:24 +08:00
Yudong Jin
c411969bd1 Merge branch 'master' of github.com:krahets/hello-algo 2023-01-08 18:16:10 +08:00
nuomi1
f49c674029
feat: add Swift codes for array article 2023-01-08 17:38:08 +08:00
Yudong Jin
694ea4f665 Modify 。** to **。 for better visualization. 2023-01-07 20:34:32 +08:00
Yudong Jin
30b4ab6ba7 Update array (Go). 2023-01-06 03:28:27 +08:00
Yudong Jin
5cb62fd458 Update the array (Go code). 2023-01-02 19:03:36 +08:00
Yudong Jin
82b8a5da39
Merge branch 'master' into master 2023-01-02 18:53:33 +08:00
Yudong Jin
e5497496f9
Update array.md 2022-12-30 16:45:40 +08:00
Cathay
b3e3aa1e72
Merge branch 'krahets:master' into master 2022-12-29 13:27:03 +08:00
Cathay
c0e8b75bfd feat(array): add the Go code to array docs (Chapter of Array and LinkedList) 2022-12-29 13:26:09 +08:00
龚国玮
f0c3bf5766 docs(array): reduce understanding cost
- 去除了并行测试;
- 基于 Java 代码样例,统一了命名风格;
- 基于 Go link 模块代码样例,统一了测试用例风格;
- 我们将 Go 中的 Slice 切片看作 Array 数组。因为这样可以降低理解成本,利于我们将关注点放在数据结构与算法上。
2022-12-28 10:46:12 +08:00
龚国玮
b1be0aab15 docs(array): sample code for golang
本次提交包含如下示例代码。
- 遍历数组;
- 初始化数组;
- 扩展数组长度;
- 在数组中查找指定元素;
- 随机返回一个数组元素;
- 删除索引 index 处元素;
- 在数组的索引 index 处插入元素 num。

所有数组约定长度为 5。原因如下:
在 goalng 中,必须声明数组的长度,例如:nums := [5]int{1,2,3,4,5}。如果不声明长度,则被称为切片。

使用的注释没有按照 golang 的编程惯例,而是倾向于使用文档上下文的注释约定。
所以所有函数注释均使用了 `/* ... */`,而不是双斜杠 `//`。
2022-12-27 11:25:30 +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
Yudong Jin
a8fb1a4f41 Update source codes. 2022-12-20 13:20:20 +08:00
Ja_ve
030042e689
Update array.md
数组插入应该取不到索引值才对
2022-12-20 00:21:52 +08:00
徐彤
94f66d3f06 Update C# array code and doc
Add some comments and make code specification
2022-12-14 15:11:25 +08:00
Ming
d61196de3a
Update array.md,fix md formatting errors
Fix md formatting errors
2022-12-14 11:22:14 +08:00
Ming
92aa96d8f7
Update array.md Add the C# code to docs ( Chapter of Array)
Add the C# code to docs ( Chapter of Array)
2022-12-14 11:03:28 +08:00
Yudong Jin
e038eb4f24 Merge branch 'dev' of github.com:justin-tse/hello-algo into justin-tse-dev 2022-12-13 00:06:18 +08:00
IsChristina
dc3ac1fae6 add ; 2022-12-12 21:39:48 +08:00
justin
5fbdff1b41 Update JavaScript and TypeScript code to docs (Chapter of Array) 2022-12-12 21:25:07 +08:00
Yudong Jin
c8336df86d Fix array.md 2022-12-09 21:47:24 +08:00
justin
47db74892d Add TypeScript code to docs (Chapter of Array) 2022-12-04 18:00:44 +08:00
Yudong Jin
ebf9024136 Add Go codes to docs, including
the chapter of stack and queue, the chapter of tree.
2022-12-03 20:25:24 +08:00
Yudong Jin
9bd5980a81 Organizing all the code blocks. 2022-12-03 01:31:29 +08:00
Yudong Jin
c1d2e0de09 Modify a naming of JavaScript. 2022-11-27 20:16:41 +08:00
Yudong Jin
1c68a860f8 Merge branch 'js-dev' 2022-11-27 20:10:57 +08:00
Yudong Jin
0c24343ad7 Add an imortant tip. 2022-11-27 20:00:03 +08:00
Yudong Jin
731e98fc25 Add C++ codes for the chapter
array and linked list.
2022-11-27 19:07:35 +08:00
IsChristina
d62d8a4916 add javascript array 2022-11-27 18:33:53 +08:00
krahets
cbf4ab0aaa Add Python codes for the chapter
of array and linked list.
2022-11-25 03:59:38 +08:00
krahets
faba5af781 Update README 2022-11-23 15:50:59 +08:00
krahets
33d79ea6da Update docs for deployment on Vercel. 2022-11-22 17:47:26 +08:00