rongyi
56a165bf98
cargo fmt code ( #1349 )
6 months ago
rongyi
f901a31bae
fix(Rust): no need to clone in hash put fn ( #1226 )
...
* no need to clone in hash put fn
* fmt rust code
* make code more readable
* Change vec append to extend, more friendly to rookie rust dev
* drop comment
7 months ago
Yudong Jin
034ee65e9a
Fix bugs and harmonize the code comments ( #1199 )
...
* Fix the comment in array_deque.go
* Fix the comment in bucket_sort.c
* Translate the Java code comments to Chinese
* Bug fixes
* 二分查找 -> 二分搜尋
* Harmonize comments in `utils` between multiple programming languages
8 months ago
rongyi
6f1ec66949
Fix rust compile warning and an obvious print error in array.rs ( #1144 )
...
* Fix rust compile warning and an obvious print error in array.rs
* Update LinkedList
1. drop unnessaray mut borrow
2. fmt code and make variable more readable
* follow convention of this repo
* Update list_node.rs
---------
Co-authored-by: Yudong Jin <krahets@163.com>
8 months ago
codingonion
7ffef7e1d6
update the author info `sjinzh` -> `codingonion` ( #1017 )
...
* update author information
* Update index.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
11 months ago
krahets
355cc3a6b1
Bug fixes to C 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
Night Cruising
a296786b2a
feat: add rust codes for chapter heap ( #612 )
...
Co-authored-by: Yudong Jin <krahets@163.com>
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
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
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
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
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
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
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
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