Commit graph

1147 commits

Author SHA1 Message Date
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
zhuoqinyue
037aaeeaa2
fix: update the code comment (#386)
Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
2023-02-26 01:16:41 +08:00
krahets
e500b19f5a Update the labels of the figures. 2023-02-25 23:35:39 +08:00
krahets
93fb0075cc Update graph_bfs.js and graph_dfs.js 2023-02-25 02:19:48 +08:00
zhuoqinyue
e8f311e900
update: Use function declarations instead of function expressions. (#385)
Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
2023-02-25 02:15:46 +08:00
krahets
f894199d58 Add lang blocks in graph_traversal.md 2023-02-25 01:26:34 +08:00
zhuoqinyue
2d421de984
feat: add bfs and dfs for JS and TS (#377)
* add bfs and dfs for JS and TS

* update the type

* Apply suggestions from code review

Co-authored-by: Justin Tse <xiefahit@gmail.com>

* Update graph_dfs.ts

* Update graph_bfs.ts

* Update graph_dfs.ts

* Update graph_bfs.ts

* Update graph_dfs.js

* Update graph_bfs.js

---------

Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
Co-authored-by: Yudong Jin <krahets@163.com>
Co-authored-by: Justin Tse <xiefahit@gmail.com>
2023-02-25 01:11:11 +08:00
krahets
9d3d8dd952 Add &nbsp; to the headings. 2023-02-24 18:49:13 +08:00
krahets
4a0c4eea69 Update data_and_memory.md and graph_traversal.md 2023-02-24 11:42:59 +08:00
krahets
107110d2d2 Update .gitignore 2023-02-24 01:12:48 +08:00
nuomi1
037769d94d
feat: add Swift codes for deque article (#380) 2023-02-23 23:03:33 +08:00
xBLACKICEx
533cb7bbbe
feat(rust/hashing): add array_hash_map (#373)
*  feat(rust/hashing): add array_hash_map

* 📃 docs(rust/hashing): correct comments
2023-02-23 23:02:13 +08:00
krahets
adbb12c011 Fix a comment in graph_adjacency_list 2023-02-23 20:32:26 +08:00
krahets
73c8920c6b Add python code of Heap and Graph to docs. 2023-02-23 20:23:49 +08:00
Yudong Jin
1f4dba4845
Add the Python codes for the chapter of Graph and Heap (#382) 2023-02-23 20:00:40 +08:00
Yudong Jin
776f2d82bb
Update heap.md (#381) 2023-02-23 19:58:09 +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
0b72fef381 Fix quick_sort.py 2023-02-21 21:51:56 +08:00
zhuoqinyue
b89ea3eba4
Add vertex class for javascript and typescript (#370)
* add vertex class for javascript and typescript

* update the adjacencyList

* update the graph_adjacency_list file

* update the implicit type

---------

Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
2023-02-21 21:35:44 +08:00
nuomi1
04b0fb7455
refactor: extract Vertex and use Array<Vertex> (#374)
* refactor: extract Vertex and use Array<Vertex>

* docs: add chapter to Package.swift

* Update graph_adjacency_list.swift

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-21 21:35:28 +08:00
krahets
85be0e286b Update the figures in acl_tree.md 2023-02-19 01:48:55 +08:00
Leo.Cai
d249c8802e
add chapter_sorting by dart (#366)
* add chapter_sorting by dart

* fixed style of dart and bug mentioned before

* alter min value of dart

* Update radix_sort.dart

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-19 01:03:42 +08:00
xBLACKICEx
53f45984f9
feat(rust/sorting) add insertion, merge, quick sort code (#369)
*  feat(rust/sorting): add insertion_sort

*  feat(rust/sorting): add merge sort

*  feat(rust/sorting): add quick sort

* 📃 docs(rust/sorting): add & correct some missing comments.

* 📃 docs(rust/sorting): add & correct some missing comments.
2023-02-19 01:00:20 +08:00
方圆
197a5f27fa
去除多余的”,“ (#371) 2023-02-19 00:58:31 +08:00
krahets
ab9d1e538e Update mkdocs.yml 2023-02-17 20:10:53 +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
Jefferson
7b9c552273
Add dart chapter_computational_complexity (#363)
* add dart chapter_array_and_linkedlist

* update my_list.dart

* update chapter_array_and_linkedlist

* Update my_list.dart

* Update array.dart

* Update file name

* Add chapter_computational_complexity

* Add chapter_computational_complexity

* add space_complexity class and format code

* remove class

---------

Co-authored-by: huangjianqing <huangjianqing@52tt.com>
Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-16 02:23:06 +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
krahets
0fa78e4b3b Update graph_adjacency_list.java, .cs 2023-02-15 21:45:35 +08:00
xBLACKICEx
1209261bdd
🦄 refactor(rust/deque): change LinkedList to VecDeque (#364)
* 🦄 refactor(deque):  change LinkedList to VecDeque

* 📃 docs(deque): add author

* 🦄 refactor(rust/queue):  change LinkedList to VecDeque

* 📃 docs(rust/queue): add author

* 📃 docs(deque): corrent author format
2023-02-15 21:32:03 +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