krahets
c310edb672
Polish the chapter of array and linkedlist
1 year ago
Night Cruising
5a4182372c
Fix the bug of index in rust codes ( #685 )
1 year ago
krahets
6ef4dc6444
Fix the content
1 year ago
krahets
932d14644d
Polish the content
...
Polish the chapter preface, introduction and complexity anlysis
1 year ago
Yudong Jin
71074d88f6
Add the section of binary search insertion. ( #671 )
...
Refactor the section of binary search edge.
Finetune the figures of binary search.
1 year ago
WangSL
13bb76c283
feat: add rust code for build_in_hash and hash_collision ( #629 )
...
* Create hash_map_chaining.rs
* Create hash_map_open_addressing.rs
* Create build_in_hash.rs
* Update Cargo.toml
1 year ago
Yudong Jin
027bdd6510
Release Rust code to documents. ( #656 )
1 year ago
krahets
60162f6fa8
Finetune Rust code.
1 year ago
Night Cruising
06006c58a2
feat: add rust codes for array binary tree ( #654 )
...
* feat: add rust codes for array binary tree
* update tree_node.rs
* update: add implementation of vec_to_tree and tree_to_vec
* update tree_node.rs
* Update tree_node.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
krahets
b067016bfa
Update preorder_traversal_iii.
1 year ago
Night Cruising
fdbe275fc9
fix: check the rust codes and fix them ( #653 )
...
* fix: check the rust codes and fix it
* Update binary_tree_bfs.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
Night Cruising
9d56622c75
feat: add rust codes for chapter greedy ( #646 )
...
* feat: add rust codes for chapter greedy
* Update max_product_cutting.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
krahets
bba62bbe75
Fix the code of preorder_traversal_iii_compact
1 year ago
krahets
c54536d1a1
Modify the problem of preorder_traversal_iii
1 year ago
sjinzh
8737fc66dd
rust : add codes for chapter_divide_and_conquer ( #621 )
1 year ago
Night Cruising
a296786b2a
feat: add rust codes for chapter heap ( #612 )
...
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
sjinzh
ead33ca863
zig : update codes style && rust : add codes for chapter_backtracking. ( #613 )
...
* zig : update codes style
* rust : add codes for chapter_backtracking
* zig : update codes style
1 year ago
Night Cruising
f5ea4fa1c6
feat: add rust codes for avl tree ( #605 )
...
* feat: add rust codes for avl tree
* fix a wrong usage of borrow method of RefCell
* Update avl_tree.rs
* fix comment indentation and field define of TreeNode
---------
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
sjinzh
b1f8857212
rust and zig : add codes for chapter_dynamic_programming ( #606 )
...
* rust : add codes for chapter_dynamic_programming
* zig : add codes for chapter_dynamic_programming
* rust : add codes for chapter_backtracking
* Update n_queens.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
Night Cruising
c3add62dc7
feat: add rust codes for graph chapter ( #598 )
...
* feat: add rust codes for graph chapter
* update: remove Vertex and it's method to vertex.rs
1 year ago
Night Cruising
f548eae663
feat: add rust codes for bucket sort, counting sort and radix sort ( #590 )
...
* add rust codes for bucket sort, counting sort and radix sort
* update Cargo.toml for build
1 year ago
sjinzh
6733a4843c
rust : add codes for chapter_backtracking ( #594 )
...
* rust : add codes for chapter_backtracking
* Update subset_sum_ii.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
1 year ago
sjinzh
459449d41a
zig : upgrade codes && rust : add codes for chapter_searching and chapter_dynamic_programming. ( #591 )
...
* zig : update zig codes
* rust : add codes for linear_search and hashing_search
* rust : add codes for linear_search and hashing_search
* rust : add codes for chapter_dynamic_programming
1 year ago
Night Cruising
6c133d42d5
rust code for heap sort ( #579 )
1 year ago
WangSL
3b3841ba36
The Rust version of the selection sort. ( #524 )
...
* The Rust version of the selection sort.
* The Rust version of the binary_search_edge
* update,The Rust version of the binary_search_edge and selection_sort
* update,The Rust version of the binary_search_edge and selection_sort
* update The Rust version of the binary_search_edge and selection_sort
1 year ago
Yudong Jin
9563965a20
Add the codes of hashmap ( #553 )
...
of chaining and open addressing
1 year ago
krahets
eb8df49993
Update bubble sort and insertion sort.
2 years ago
xBLACKICEx
abecea9ab6
✨ feat(rust/tree): add binary_search_tree ( #481 )
...
* ✨ feat(rust/tree): add binary_tree_dfs
* ✨ feat(rust/tree): add binary_tree_bfs
* 🐞 fix(rust/tree): can't list to any kind of tree
* ✨ feat(rust/tree): add binary_search_tree
* Update binary_search_tree.rs
* 🐞 fix(rust/tree): corret writing mistakes
* 🦄 refactor(rust/tree): remove get_next_node() function
* Update binary_search_tree.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
krahets
f6d290d903
Update the comments of bubble sort
...
and insertion sort
2 years ago
krahets
d95c628eef
Fix the test case of binary search.
2 years ago
krahets
d3cc149c5a
Merge the chapter of binary tree and searching.
2 years ago
krahets
c3e7455285
Refactor the section of bianry search.
2 years ago
krahets
399e5df39a
Polish some cotents.
2 years ago
krahets
fe69f7240d
Add figures to replace_linear_by_hashing.md
2 years ago
krahets
de579aa3f4
Fix the file headers.
2 years ago
xBLACKICEx
9c2e5e2831
✨ feat(rust/tree): add binary_tree_bfs, binary_tree_dfs, ( #450 )
...
* ✨ feat(rust/tree): add binary_tree_dfs
* ✨ feat(rust/tree): add binary_tree_bfs
* 🐞 fix(rust/tree): can't list to any kind of tree
2 years ago
Yudong Jin
881d573790
Refactor the articles related to searching algorithm. Add the chapter of binary search. Add the section of searching algorithm revisited. ( #464 )
2 years ago
Yudong Jin
1c8b7ef559
refactor: Replace 结点 with 节点 ( #452 )
...
* Replace 结点 with 节点
Update the footnotes in the figures
* Update mindmap
* Reduce the size of the mindmap.png
2 years ago
krahets
3f4e32b2b0
Polish the chapter of graph, hashing, appendix
2 years ago
krahets
518b9efabc
Update a comment in array_hash_map
2 years ago
krahets
d5afd93571
Update array_hash_map
2 years ago
sjinzh
c2be6ebfbe
🚀 feat: add rust codes for array_deque ( #418 )
...
* update zig codes style
* feat: add rust codes for array_deque
* Update array_deque.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
krahets
516cb17775
Replace poll with pop
2 years ago
Yudong Jin
8aebbaad21
refactor: Replace poll with pop in Queue and Deque ( #415 )
2 years ago
sjinzh
6924d15f63
🚀 feat: add rust codes for linkedlist_stack, linkedlist_queue and linkedlist_deque ( #410 )
...
* feat: add rust codes for space_complexity
* feat: add rust codes for linkedlist_stack
* update
* feat: add rust codes for linkedlist_queue
* feat: add rust codes for linkedlist_deque
* update
2 years ago
sjinzh
2029d2b939
feat: add rust codes for space_complexity ( #409 )
2 years ago
sjinzh
050b922f8a
feat: add rust codes for linked_list and my_list ( #408 )
...
* feat: add rust codes for linked_list
* feat: add rust codes for my_list
* Update linked_list.rs
* Update print_util.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
xBLACKICEx
590b532606
✨ feat(rust/tree): add binary_tree ( #398 )
...
* ✨ feat(rust/hashing): add array_hash_map
* 📃 docs(rust/hashing): correct comments
* ✨ feat(rust/include): add tree_node
* ✨ feat(rust/include): add print_tree
* ✨ feat(rust/tree): add binary_tree
* docs(rust/tree): correct comments
* 📃 docs(rust/tree): correct comments
2 years ago
xBLACKICEx
533cb7bbbe
✨ feat(rust/hashing): add array_hash_map ( #373 )
...
* ✨ feat(rust/hashing): add array_hash_map
* 📃 docs(rust/hashing): correct comments
2 years ago
krahets
0b72fef381
Fix quick_sort.py
2 years ago
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.
2 years ago
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
2 years ago
WangSL
ea5677b3c6
Add array_queue.rs in chapter_stack_and_queue ( #359 )
...
* array_stack.rs
* array_queue.rs
* Update Cargo.toml
* Create array_queue.rs
* Delete array_queue.rs
* Add array_queue.rs in chapter_stack_and queue
* Update array_queue.rs
---------
Co-authored-by: wsl <wslzzy@qq.com>
2 years ago
sjinzh
08b7474894
Update the coding style for Rust and Zig ( #356 )
...
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
sjinzh
e65c7bd478
Refine some details and coding style for Rust codes ( #344 )
...
* Refine some details and coding style for Rust codes
* Update coding style for Rust codes
* Update time_complexity.rs
* Update array.rs
* Update leetcode_two_sum.rs
* Update hash_map.rs
* Update file headers
* Update coding style for Rust codes and Zig codes
* Update coding style for Rust codes and Zig codes
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
sjinzh
063501068b
Update the coding style for Zig ( #336 )
...
* Update the coding style for Zig
* Update array.rs
2 years ago
WangSL
cb73007495
array_stack.rs ( #337 )
...
Co-authored-by: wsl <wslzzy@qq.com>
2 years ago
sjinzh
8a388d8422
update rust codes for hash_map, binary_search, bubble_sort, stack, queue ( #330 )
...
* update rust codes
* update rust codes
* update rust codes
* update and add rust codes for hash_map, binary_search, bubble_sort
* update and add rust codes for hash_map, binary_search, bubble_sort
* add rust codes for chapter stack
* add rust codes for chapter queue
* add rust codes for chapter deque
2 years ago
Yudong Jin
70dead5cd0
Update worst_best_time_complexity,
...
leetcode_two_sum
2 years ago
xBLACKICEx
80e9651fc2
add Rust code array, list ( #294 )
...
* ✨ feat(codes/rust/array_and_linkedlist): add array
* 🐳 chore(codes/rust): update Cargo.toml
* ✨ feat(codes/rust/array_and_linkedlist): add list
* 📃 docs(codes/rust/array_and_linkedlist): add miss comment
---------
Co-authored-by: xblakicex <xblakicex@outlook.com>
2 years ago
xblakicex
20dee23141
🌈 style(computational_complexity): remove cargo-single comment
2 years ago
xblakicex
4249872e25
🐳 chore(code/rust): add cargo in chapier
2 years ago
xblakicex
3d4469203b
🐳 chore(computational_complexity): temporary remove space_time,rs
2 years ago
xblakicex
16e4af08b6
🌈 style(codes/rust): fix comment style and miss comment
2 years ago
xblakicex
28e9e4ceb6
🌈 style(codes/rust): add miss comment in leetcode_two_sums and time_complexity
2 years ago
xblakicex
a5425b6d9b
✨ feat(codes/rust): add leetcode_two_sum.rs
2 years ago
xblakicex
c20ebb4411
🌈 style(space_complexity): add Add todo comments rust
2 years ago
xblakicex
e99d23690e
✨ feat(space_complexity): add rust code
2 years ago
xblakicex
d710a3ffdf
🐞 fix(codes/time_complexity): fix rust attribut error
2 years ago
xblakicex
d0359378f3
🐳 chore(codes): add cargo for rust codes
2 years ago
xblakicex
705fc86e89
✨ feat(worst_best_time_complexity): add rust code
2 years ago
xblakicex
89146b7fc3
🐞 fix(computational_complexity): fix some rust cmpl error
2 years ago
xblakicex
29c5049c7d
✨ feat(code): add rust time_complexity.rs example
2 years ago