Commit graph

784 commits

Author SHA1 Message Date
Yudong Jin
881d573790
Refactor the articles related to searching algorithm. Add the chapter of binary search. Add the section of searching algorithm revisited. (#464) 2023-04-17 18:22:18 +08:00
Yudong Jin
49606fd199
Add the chapter of backtracking. (#459) 2023-04-16 04:52:42 +08:00
krahets
b3640c53d1 Remove unused functions. 2023-04-14 05:52:59 +08:00
krahets
f7ae9c8a02 Fix the return type of binary search tree and avl tree 2023-04-14 05:47:20 +08:00
krahets
7273ee24e8 Fix the contents. 2023-04-13 22:44:59 +08:00
krahets
236b9cadb1 Polish the chapter of stack_and_queue, tree 2023-04-10 23:59:22 +08:00
krahets
9a74d9a9d1 Polish the chapter of searching and sorting. 2023-04-10 03:11:49 +08:00
krahets
0bec52d7cc Polish the chapter of heap, introduction, preface.
Replace "其它" with "其他"
2023-04-09 19:12:37 +08:00
krahets
10e2180013 Unify the comment style of python codes 2023-04-09 05:30:02 +08:00
Yudong Jin
1c8b7ef559
refactor: Replace 结点 with 节点 (#452)
* Replace 结点 with 节点
Update the footnotes in the figures

* Update mindmap

* Reduce the size of the mindmap.png
2023-04-09 04:32:17 +08:00
krahets
3f4e32b2b0 Polish the chapter of graph, hashing, appendix 2023-04-09 03:09:06 +08:00
krahets
3872f94caa Polish the chapter of data structure. 2023-04-08 04:07:09 +08:00
krahets
de6945f55a Polish the contents
1. Array and linked list.
2. Computational complexity.
3. Fix a mistake in counting_sort.md
2023-04-07 22:31:50 +08:00
krahets
b7daddf88f Polish the contents. 2023-04-06 22:03:46 +08:00
Yudong Jin
830ec69d39
Add bucket_sort.cpp and bucket_sort.py (#446) 2023-03-30 03:44:26 +08:00
krahets
264adf250a Polish the content of intro_to_sort 2023-03-27 20:02:05 +08:00
krahets
423cc6fc2a Update the summary of the sorting chapter. 2023-03-26 22:44:27 +08:00
Yudong Jin
34a1bca627
Add the section of radix sort. (#441) 2023-03-26 22:02:37 +08:00
krahets
c338a6d8d8 Add the section of bucket sort 2023-03-26 04:47:05 +08:00
krahets
22898b6955 Simplify the contents of the sorting algorithms. 2023-03-25 18:41:22 +08:00
krahets
f4e01ea32e Update counting_sort.md 2023-03-23 04:41:08 +08:00
krahets
326a56fdd9 Add the overview figure of counting sort. 2023-03-23 04:21:01 +08:00
Yudong Jin
65e47b0748
Add Python and C++ code for the counting sort. (#436) 2023-03-21 22:24:17 +08:00
krahets
6d452777a4 Update graph.md 2023-03-20 21:46:27 +08:00
krahets
ecc718d0b1 Update build_heap.md 2023-03-20 21:10:01 +08:00
krahets
501502662c Update quick_sort.md 2023-03-20 03:14:21 +08:00
Yudong Jin
ceeb138487
Add the section of counting sort. (#427) 2023-03-19 23:42:12 +08:00
krahets
8e78c6036b Update hash_collision.md 2023-03-18 22:48:26 +08:00
Guanngxu
351da5c108
update C linked_list init (#421)
* docs: update C linked_list init

* Update linked_list.md

* Update linked_list.c

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-03-18 18:31:47 +08:00
Reanon
fcdc96e03d
fix(doc/go): fix binary_tree doc (#420) 2023-03-16 18:42:06 +08:00
krahets
06f87d8066 Update README.md 2023-03-16 00:05:46 +08:00
krahets
9bb8e94a2c Update hash_map and hash_collision. 2023-03-15 03:06:52 +08:00
iScream
ec0856ccfa
docs(Hashing/Hash_Collision): add go part. (#395)
* docs(Hashing/Hash_Collision): add go part.

* docs(Hashing/Hash_Collision): add go part.

* docs(Hashing/Hash_Collision): add go part.

* docs(Hashing/Hash_Collision): add go part.

* docs(Hashing/Hash_Collision): add go part.

* Update hash_collision.md

* fix context logic question

* Update Go language hash table collision handling to limit each bucket to 8 entries and compare keys' high 8 bits of hash to reduce access to key-value pairs

* Update hash_collision.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-03-15 02:18:07 +08:00
krahets
d09b1e4f9f Fix space_complexity.md 2023-03-13 22:53:53 +08:00
Yudong Jin
28aacccf44
refactor: Replace 'poll' with 'pop' in Heap (#416) 2023-03-13 22:31:05 +08:00
Yudong Jin
8aebbaad21
refactor: Replace poll with pop in Queue and Deque (#415) 2023-03-13 21:58:21 +08:00
Yudong Jin
9151eaf533
Add typing annotations to Python codes. (#411) 2023-03-12 18:49:52 +08:00
krahets
82bbdd444d Update the chapter of stack and queue. 2023-03-12 04:14:36 +08:00
krahets
bbef87ccfe Update the applications of deque. 2023-03-12 02:45:10 +08:00
krahets
b7fa3bbe86 Fix linked_list.md and hasp_map.md 2023-03-11 00:00:15 +08:00
krahets
ba78fead8e Update README.md 2023-03-10 02:06:29 +08:00
krahets
13e5fced78 Adjust the font size. 2023-03-07 01:17:30 +08:00
krahets
71c69bf2fd Update index.md 2023-03-06 22:41:08 +08:00
krahets
198d1e6a23 Update sorting_algorithms_comparison.png 2023-03-04 03:14:48 +08:00
krahets
ca261a8f46 Update the chapter preface. 2023-03-03 21:54:04 +08:00
nuomi1
17ff091a03
refactor: review Swift codes for chapter_computational_complexity art… (#396)
* refactor: review Swift codes for chapter_computational_complexity articles

* Update time_complexity.swift

* Update time_complexity.swift

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-03-03 21:22:23 +08:00
krahets
7c501140f0 Update code style for Python 2023-03-03 03:07:22 +08:00
Yudong Jin
33c797efeb
feat: Add C++ code for the graph bfs and dfs (#401)
* Add C++ code for the graph bfs and dfs

* Add C++ code for the graph bfs and dfs
2023-03-02 18:57:33 +08:00
krahets
902be479b2 Update the contents 2023-03-02 02:58:34 +08:00
krahets
55586e6a6e Add linkedlist_deque and array_deque to docs. 2023-03-01 03:51:30 +08:00
krahets
29ae658dea Fix code formats. 2023-03-01 03:17:07 +08:00
krahets
6659b87ffe Update README.md
Add preface in index.md
2023-03-01 00:24:18 +08:00
krahets
dabe5d5c24 build 2023-02-28 20:03:53 +08:00
krahets
10903b2781 Updathe time_complexity.md 2023-02-28 00:14:59 +08:00
krahets
ff6022796c Fix 结构体 and 类. 2023-02-27 21:01:25 +08:00
花无缺
731487864f
linked_list.md中增加链表结构体定义C语言代码 (#384) 2023-02-27 20:59:59 +08:00
krahets
18f2ec4fdc Fix array_deque.java
Unify the book name.
Update cover image.
2023-02-27 19:08:32 +08:00
krahets
f83bf7792c Update the chapter preface and add the chapter appendix 2023-02-27 03:44:54 +08:00
krahets
e7b71df467 Updathe suggestions.md 2023-02-27 02:44:09 +08:00
krahets
0e67c07b28 Update sorting_algorithm_comparison.png 2023-02-26 22:52:38 +08:00
krahets
c2d641537e Add summary for the chapters of introduction, hashing, heap, graph, sorting 2023-02-26 22:47:21 +08:00
krahets
1a49631dba Unify the headings in mkdocs.yml and the articles. 2023-02-26 20:16:55 +08:00
krahets
5b44ff5397 Seperate the build_heap from the heap. 2023-02-26 20:12:17 +08:00
krahets
23cda5e225 Add captions for all the animations. 2023-02-26 19:22:46 +08:00
krahets
7aa44d212c Remove all the table captions. 2023-02-26 18:23:11 +08:00
krahets
9e99ac06ce Update the captions of all the figures. 2023-02-26 18:18:34 +08:00
krahets
85d04b30fb Update index.md and about_the_book.md 2023-02-26 05:56:36 +08:00
krahets
510a957b71 Update the chapter preface. 2023-02-26 05:35:02 +08:00
krahets
b25aadae6f Remove the file headers from the docs. 2023-02-26 02:19:40 +08:00
krahets
2b33f7bc5f Add step symbols in animations and unify font size for all the figures 2023-02-26 01:47:57 +08:00
krahets
e500b19f5a Update the labels of the figures. 2023-02-25 23:35:39 +08:00
krahets
f894199d58 Add lang blocks in graph_traversal.md 2023-02-25 01:26:34 +08:00
krahets
4a0c4eea69 Update data_and_memory.md and graph_traversal.md 2023-02-24 11:42:59 +08:00
nuomi1
037769d94d
feat: add Swift codes for deque article (#380) 2023-02-23 23:03:33 +08:00
krahets
73c8920c6b Add python code of Heap and Graph to docs. 2023-02-23 20:23:49 +08:00
nuomi1
c6c4c9d997
feat: add Swift codes for graph_traversal article (#378)
* feat: add Swift codes for graph_traversal article

* refactor: rename parameters

* Update graph_dfs.swift

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-22 19:41:31 +08:00
t8g
f2d2cca5f1
refactor:Simplified lambda expressions for PriorityQueue in heap.md and heap.java (#379) 2023-02-22 19:35:49 +08:00
krahets
a2b74943a2 Update data_and_memory.md 2023-02-22 19:29:07 +08:00
krahets
d87c9b5084 Add floating-point format in data_and_memory.md 2023-02-22 19:02:26 +08:00
krahets
3daaf30f23 Update the symbols of the animations. 2023-02-22 00:57:43 +08:00
krahets
85be0e286b Update the figures in acl_tree.md 2023-02-19 01:48:55 +08:00
方圆
197a5f27fa
去除多余的”,“ (#371) 2023-02-19 00:58:31 +08:00
krahets
8b5b00bab8 Update README.md
Remove build utils.
2023-02-17 19:16:59 +08:00
krahets
992d17c8ed Add the file header. 2023-02-16 03:40:55 +08:00
krahets
88b00151b0 Remove the heading numbers
in all the source docs.
2023-02-16 03:39:01 +08:00
krahets
15417d2a95 Update queue.md
Match the latest ArrayQueue implementation
2023-02-16 03:03:02 +08:00
krahets
6812b4f5c5 Update the figures of array_queue 2023-02-16 02:21:04 +08:00
方圆
f0d8d8b1b0
feat: add ArrayDeque (#348)
* 双向队列: java 代码

* 双向队列: markdown 内容

* Rewrite array_deque.java
Update array_queue.java, linkedlist_deque.java

* Add ArrayDeque figures and rewrite the contents

---------

Co-authored-by: krahets <krahets@163.com>
2023-02-16 02:17:15 +08:00
ZJKung
f0b092fec4
Add C# code for the chapter Heap and Graph (#324)
* add : C# heap ,graph, fix type "sift"=>"shift"

* chore: rename "shift" to "sift"

* add: heap,graph C# sample code ,fix format

* fix md format

* fix md intend foramt

* fix basic_operation_of_graph.md format

* fix md format

* fix md format

* fix indentation format

* chore: fix my_heap.cs test

* fix: test and doc typo

* fix bug for commit 5eae708 (#317)

* Add Zig code blocks.

* fix: resolve build error for commit 5eae708 (#318)

* Unify the function naming of
queue from `offer()` to `push()`

* Update TypeScript codes.

* Update binary_search_tree

* Update graph operations.

* Fix code indentation.

* Update worst_best_time_complexity,
leetcode_two_sum

* Update avl_tree

* 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>

* Fix Python code styles.
Update hash_map.

* chore: fix heap logic

* Update graph_adjacency_matrix.cs

* Update graph_adjacency_matrix.cs

* Update my_heap.cs

* fix: heap test

* fix naming format

* merge markdown

* fix markdown format

* Update graph_adjacency_list.cs

* Update graph_adjacency_matrix.cs

* Update PrintUtil.cs

* Create Vertex.cs

* Update heap.cs

---------

Co-authored-by: zjkung1123 <zjkung1123@fugle.tw>
Co-authored-by: sjinzh <99076655+sjinzh@users.noreply.github.com>
Co-authored-by: Yudong Jin <krahets@163.com>
Co-authored-by: nuomi1 <nuomi1@qq.com>
2023-02-15 21:24:24 +08:00
krahets
a383cb7ddf Update graph_operations.md 2023-02-15 04:34:10 +08:00
krahets
9848881945 Fix graph_operations.md and binary_tree_traversal.md 2023-02-15 03:43:29 +08:00
Yudong Jin
925e05fd03
feat: add the section of Graph Traversal (#367)
* Graph dev

* Add the section of Graph Traversal.

* Add missing Vertex.java

* Add mkdocs.yml

* Update numbering

* Fix indentation and update array.md
2023-02-15 03:34:06 +08:00
Zero
6044ec7feb
Update installation.md (#365)
* Update installation.md

添加 0.3.3. C/C++ 环境 中安装方式国内镜像

* Update installation.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-14 18:34:47 +08:00
krahets
909b253693 Update index.md 2023-02-13 17:35:29 +08:00
krahets
a8cbc5dd0a Update README.md 2023-02-13 16:34:09 +08:00
krahets
4b49373385 Update index.md, hashmap.md 2023-02-13 16:29:31 +08:00
谢斌
c74480c984
Update heap.md (#361)
修正“元素入堆的时间复杂度”为lgn
2023-02-11 23:01:36 +08:00
krahets
89281569da Update about_the_book.md 2023-02-11 23:00:23 +08:00
krahets
d1e1d76162 Add sorce code blocks of C to the docs. 2023-02-11 18:22:27 +08:00
Guanngxu
0aea04f142
feat: add array C docs (#352)
* feat: add arry C docs

* fix: change remove to removeItem

* Update array.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-11 00:43:04 +08:00
krahets
300016393b Add code source blocks to the chapter Graph.
Fix "函数" and "方法"
2023-02-10 01:04:26 +08:00
krahets
ec25970e8e Update .gitignore
Add build script for Zig.
2023-02-09 22:57:25 +08:00
krahets
3465b300e9 Add the introduction to the reviewers
to the index.md
2023-02-09 19:45:35 +08:00
krahets
61a2c32f64 Update extract_code_go.py 2023-02-09 04:54:52 +08:00
krahets
e8c78f89f0 Add build script for Go and update Go codes. 2023-02-09 04:45:06 +08:00
krahets
12c085a088 Fix C++, JS, and TS blocks for the code building 2023-02-09 03:20:27 +08:00
siqyka
6cce1ab059
Update time_complexity.md (#353)
* Update time_complexity.md

这样修改是否更加通畅,或者修改位“以下示例即位使用上述技巧前、后的统计结果”,因为是根据上述技巧给出的示例,二不是根据示例得出了技巧

* Update time_complexity.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-09 01:00:56 +08:00
Malcolm Yang
87f0546f71
病句修改,缺少谓语 (#350)
* 病句修改,缺少谓语

* Update performance_evaluation.md

* Update performance_evaluation.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-09 00:56:37 +08:00
Justin Tse
1eb0d91978
Update the docs for the section of AVL tree and style (#351)
Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-09 00:36:06 +08:00
krahets
6dc21691ed Add build scripts for C# and
unify the coding style.
2023-02-08 22:18:02 +08:00
krahets
38751cc5f5 Add build script for Swift. 2023-02-08 20:30:05 +08:00
krahets
05f0054005 Add build script for JS and TS codes. 2023-02-08 19:45:06 +08:00
krahets
22b7d65d20 Replace ``js with ``javascript 2023-02-08 04:27:55 +08:00
krahets
0407cc720c Fix Repo 2023-02-08 04:17:26 +08:00
Justin Tse
1cc9cecebe
Add TypeScript code and docs to Chapter of Heap (#349)
* Add TypeScript code and docs to Chapter of Heap

* Update my_heap.ts

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-07 20:50:54 +08:00
Leo.Cai
7666632d0c
Add heap part js code (#339)
* Add heap part js code

* Update heap.md

* Update heap.md

* Format the code style and fix a bug.

* and fix the style in heap.md

* fix the style

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-07 20:48:54 +08:00
krahets
8f512c2840 Update code extractor of Java. 2023-02-07 19:05:19 +08:00
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
Justin Tse
b14568151c
Add TypeScript code and docs to AVL tree and the coding style for Typescript and JavaScript (#342)
* Add TypeScript code and docs to AVL tree and update JavaScript style

* Update the coding style for Typescript and JavaScript
2023-02-07 01:21:58 +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
方圆
e7fdbe7ffb
堆: 颗 -> 棵 (#343) 2023-02-06 20:22:23 +08:00
方圆
33e15da721
堆: 颗 -> 棵 (#341) 2023-02-06 19:58:21 +08:00
方圆
4ee3af176b
二叉搜索树: 排序小节 移动到 删除结点代码 的下面 (#340)
* 插入排序: 修改插入排序思想描述

* Update insertion_sort.md

* 二叉搜索树: 排序小节 移动到 删除结点代码 的下面

* fix: 双点 -> 双向

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-06 19:57:19 +08:00
zhuoqinyue
c4b510038c
Add linkedlist_deque for typescript and javascript (#326)
* add linkedlist_deque for typescript and javascript

* update typescript and javascript examples for the deque.md

* keep the same name

* update the doc

* Update deque.md

---------

Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-06 01:31:09 +08:00
Justin Tse
bc88e52955
Add JavaScript and TypeScript code and docs for Section Space Complexity (#331)
* Fix bug before commit 5eae708

* Update queue.md

* Update the coding style for JavaScript

* Add JavaScript and TypeScript code for Section Space Complexity

* Add JavaScript and TypeScript code to docs for Section Space Complexity

* Update hashing_search.js

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-06 01:24:22 +08:00
Reanon
93ca29ca6d
feat(graph): add go codes (#314)
* feat(graph): add go codes

* feat(go/graph): add graph_adjacency_list

* doc(graph): add go codes

* fix(graph): fix go codes

* Update graph_adjacency_matrix_test.go

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-05 16:08:08 +08:00
nuomi1
12034c6af3
feat: add Swift codes for graph_operations article (#327) 2023-02-05 15:41:23 +08:00
Justin Tse
6ad8a66a7c
Update the coding style for JavaScript (#329)
* Fix bug before commit 5eae708

* Update queue.md

* Update the coding style for JavaScript

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-05 15:40:30 +08:00
Yudong Jin
6778557056 Fix avl_tree.md 2023-02-05 14:18:57 +08:00
Leo.Cai
e3f0151a7f
add js codes to avl_tree.js (#323)
* add js codes to avl_tree.js

* fixed format wrong

* Update avl_tree.js

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-05 14:15:05 +08:00
Yudong Jin
f14e3e4c57 Update linear_search and hashing_search. 2023-02-04 23:49:37 +08:00
Justin Tse
62114ce79a
Fix bug before commit 5eae708 (#325)
* Fix bug before commit 5eae708

* Update queue.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-04 21:26:14 +08:00
方圆
ea6a43b2b9
插入排序: 修改插入排序思想描述 (#322)
* 插入排序: 修改插入排序思想描述

* Update insertion_sort.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-04 18:38:52 +08:00
LoneRanger
0b16a9f6a9
Part Heap : Code Translation into C++ (my_heap.cpp) (#321)
* 增加my_heap.cpp并补充对应的文档

* 修改heap.md

* Update my_heap.cpp

* Update heap.md

* Update my_heap.cpp

* Update my_heap.cpp

* Update heap.md

* Update my_heap.cpp

* Update my_heap.cpp

* Update heap.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-04 16:33:46 +08:00
Leo.Cai
e5ae3e1cab
add avl tree and heap part cpp code (#320)
* 将avl_tree翻译成c++代码(文档明天补)

* markdown翻译了

* avl_tree.cpp翻译了

* 堆的cpp翻译

* modify the code format

* Update heap.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-04 15:53:58 +08:00
Yudong Jin
55b65dc806 Update binary_search_tree.go 2023-02-04 15:03:51 +08:00
LoneRanger
8e9eecd610
Part Heap : Code Translation into C++ (heap.cpp) (#285)
* 添加heap章节C++版本关于heap的相关操作

* 完善C++版本的heap相关操作

* 完善C++版本的heap相关操作

* fix printHeap function
2023-02-04 14:35:45 +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
70dead5cd0 Update worst_best_time_complexity,
leetcode_two_sum
2023-02-03 18:53:15 +08:00
Yudong Jin
592965595e Fix code indentation. 2023-02-03 01:17:09 +08:00
Yudong Jin
64517f2f46 Update graph operations. 2023-02-03 01:12:37 +08:00
Yudong Jin
2da45041b1 Update binary_search_tree 2023-02-02 13:54:31 +08:00
Yudong Jin
7d14c9440e Unify the function naming of
queue from `offer()` to `push()`
2023-02-02 01:43:01 +08:00
nuomi1
a0ee691475
fix: resolve build error for commit 5eae708 (#318) 2023-02-02 00:23:48 +08:00
Yudong Jin
7ce7386bab Add Zig code blocks. 2023-02-01 22:03:04 +08:00
Yudong Jin
5eae708035 Fix array queue. 2023-02-01 03:23:29 +08:00
Yudong Jin
658ad90377 Update heap.md 2023-01-31 21:21:59 +08:00
Yudong Jin
af23d7a0db Update heap.md 2023-01-31 21:17:54 +08:00
Yudong Jin
887c064a28 Update heap.md 2023-01-31 21:15:43 +08:00
Yudong Jin
a889c73aa5 Fix heap.md 2023-01-31 19:11:48 +08:00
Yudong Jin
eb0afc98ec Number the H1 and H2 headings. 2023-01-31 03:37:50 +08:00
nuomi1
f43f7a64b6
feat: add Swift codes for chapter_sorting articles (#313)
* feat: add Swift codes for bubble_sort article

* feat: add Swift codes for insertion_sort article

* feat: add Swift codes for quick_sort article

* feat: add Swift codes for merge_sort article

* feat: add Swift codes for radix_sort

* refactor: remove ^ operator
2023-01-31 00:18:40 +08:00
Yudong Jin
7f3752d306 Update README.md 2023-01-30 20:49:12 +08:00
Yudong Jin
9973822672 Merge branch 'develop' 2023-01-30 17:59:54 +08:00
Yudong Jin
ddd5562b60 Fix the index out of bound check in my_list. 2023-01-30 17:50:07 +08:00
Zero
10aa2bd43b
Add c/cpp code running and debugging tutorial under windows (#308)
* feat(docs): Add c/cpp code running and debugging tutorial under windows platform

* Update installation.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-01-30 15:50:32 +08:00
Cavin
773e718be6
Update intro_to_sort.md (#310)
“运行地快”,本想修正为”运行得快“,但觉得过于口语化,”运行快“更加符合书面用语
2023-01-30 15:44:59 +08:00
nuomi1
1665fe176c
feat: add Swift codes for chapter_searching articles (#309)
* feat: add Swift codes for linear_search article

* feat: add Swift codes for binary_search article

* feat: add Swift codes for hashing_search article
2023-01-30 15:43:29 +08:00
Yudong Jin
15c798046a Update hash collision. 2023-01-30 04:00:50 +08:00
Yudong Jin
f103fdecc9 1. Update extra.css for overwrite
the sections title color.
2. Add figures to hash collision.
3. Add inorder traversal in binary search tree.
2023-01-30 03:55:13 +08:00
nuomi1
08bfa0669a
feat: add Swift codes for heap article (#306)
* feat: add Swift codes for heap article

* Update heap.md

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-01-29 14:03:30 +08:00
Yudong Jin
29b096d90d
feat: Deque implemented using linked list (#307)
* deque: code

* deque: md

* deque: 修改代码注释

* deque: 修改md文档中代码示例

* deque: 优化注释

* deque: 优化md代码注释

* deque: 添加草图

* deque: rename file

* deque: 优化代码注释

* deque: 更改md中代码示例

* deque: 优化代码,链表的入队和出队依赖size来判断

* deque: 更新md中代码示例

* deque: 更改readme代码示例,并移除了没有使用的代码

* Update deque.md

* Update the figures and the content.

* Add code blocks.

---------

Co-authored-by: FangYuan <374072213@qq.com>
2023-01-29 13:42:42 +08:00
Yudong Jin
7060433b9d Update the structure of the chapter Graph. 2023-01-29 01:10:53 +08:00
Yudong Jin
00856199c3 Update graph.md 2023-01-29 00:38:36 +08:00
Yudong Jin
c25b1d98d5 Merge branch 'master' of github.com:krahets/hello-algo 2023-01-29 00:15:55 +08:00
Yudong Jin
3db7925a5d Enable giscus for graph.md 2023-01-29 00:15:45 +08:00
nuomi1
af8ee88e50
feat: add Swift codes for avl_tree article (#302) 2023-01-29 00:03:28 +08:00
Yudong Jin
f58068c838
Add the chapter of Graph (#303)
* Update the chapter graph

* Update the chapter graph

* Update the chapter graph

* Update the chapter graph
2023-01-28 23:56:41 +08:00
beintentional
3858048d0f
更新队列的链表实现中 self.__front 判空的方式 (#297)
* 更新队列的链表实现中 self.__front 判空的方式

self.__front 初始化为 None, 元素入队判断队列是否为空,延用头节点的初始化值 None 而不是 0

* Update linkedlist_queue.py

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-01-28 00:30:37 +08:00
nuomi1
d76e6582fa
feat: add Swift codes for binary_search_tree article (#296) 2023-01-27 01:52:51 +08:00
陆陆侠
f73231568c
typo: 双引号 (#295) 2023-01-26 15:13:29 +08:00
Yudong Jin
43d8520291 Add linkedlist_deque.java 2023-01-20 02:45:09 +08:00
方圆
caa775c53d
fix: 二分查找,左闭右开区间实现中,注释区间范围右侧符号应该是)而不应该是] (#286)
* fix: 二分查找,左闭右开区间实现中,注释区间范围右侧符号应该是)而不应该是]

我觉得需要改一下,这样更好理解

* fix: 二分查找,代码注释中 ] -> )
2023-01-19 21:06:24 +08:00
方圆
e3164c4513
fix: 二分查找中,双引号写反了 (#287)
md中不好识别,但在页面上展示是反着的
2023-01-19 18:46:41 +08:00
Yudong Jin
ca970f4b34
Merge pull request #279 from nuomi1/feature/binary_tree_traversal-Swift
feat: add Swift codes for binary_tree_traversal article
2023-01-19 02:13:28 +08:00
Yudong Jin
832755454d Merge branch 'master' of github.com:krahets/hello-algo 2023-01-19 02:04:42 +08:00
Yudong Jin
90ee88ccf5 Update stack, queue, space_time_tradeoff 2023-01-19 02:04:21 +08:00
nuomi1
d52b60804b
feat: add Swift codes for binary_tree_traversal article 2023-01-19 00:12:54 +08:00
nuomi1
3ba87bcd7b
feat: add Swift codes for binary_tree article 2023-01-18 21:37:13 +08:00
Yudong Jin
4d021775c3 Update space_time_tradeoff.md 2023-01-18 19:58:00 +08:00
Yudong Jin
9e24a79096 Update space_time_tradeoff.md 2023-01-18 19:56:56 +08:00
Yudong Jin
d96633aebd Merge branch 'master' of github.com:krahets/hello-algo 2023-01-18 19:10:12 +08:00
Yudong Jin
fc221b19da fix: stack_operations.png, bubble_sort.py 2023-01-18 19:09:56 +08:00
Yudong Jin
3b6f34fd5d
Merge pull request #272 from FangYuan33/patch-1
fix: 更快 -> 较快
2023-01-18 19:01:06 +08:00
方圆
44345cd69b
fix: 更快 -> 较快
较大、较慢、较快、较小... 这样顺一些
2023-01-18 14:06:56 +08:00
ZGC
f85b2bde7b
Create classification_of_data_structure.md 2023-01-18 14:05:25 +08:00
Yudong Jin
1e13539ca0 Update the figures in chapter preface. 2023-01-17 02:48:13 +08:00
Yudong Jin
70c1dba1cd Update a comment in randomAccess() 2023-01-17 02:10:52 +08:00
Yudong Jin
5b99d8b4f3
Merge pull request #264 from weibk/patch-1
update python randomAccess
2023-01-17 02:04:44 +08:00
Yudong Jin
2336fe1d50 Update the comments in
binary_search_tree and avl_tree.
2023-01-17 01:53:12 +08:00
Yudong Jin
db5efad27c
Merge pull request #252 from zhuoqinyue/master
Add Typescript and Javascript examples in data_and_memory.md
2023-01-17 00:33:33 +08:00
nuomi1
f0c54abb9a
feat: add Swift codes for hash_map article 2023-01-17 00:02:23 +08:00
zhuoqinyue
1636503c12
Merge branch 'krahets:master' into master 2023-01-16 21:08:49 +08:00
Yudong Jin
592e82818c Update a comment in my_heap. 2023-01-16 19:30:54 +08:00
Yudong Jin
8a4a7aa219 Merge branch 'master' of github.com:krahets/hello-algo 2023-01-16 19:29:40 +08:00
weibk
dab16ee53a
update python randomAccess
random.randomint(start, stop) 返回  数字的范围是 [start, stop] 是一个闭区间, 如果用len(nums) 有可能会索引超出范围
2023-01-16 18:12:38 +08:00
方圆
52d5258f68
fix: 冒泡排序 自适排序 -> 自适应排序 2023-01-16 17:57:28 +08:00
Yudong Jin
d33ececd57 Fix bst_degradation.png 2023-01-16 14:31:00 +08:00
Yudong Jin
b716359c99 Merge branch 'master' of github.com:krahets/hello-algo 2023-01-15 23:33:05 +08:00