Commit graph

13 commits

Author SHA1 Message Date
Yudong Jin
8aebbaad21
refactor: Replace poll with pop in Queue and Deque (#415) 2023-03-13 21:58:21 +08:00
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
2023-03-13 20:15:11 +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
300016393b Add code source blocks to the chapter Graph.
Fix "函数" and "方法"
2023-02-10 01:04:26 +08:00
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>
2023-02-09 00:25:01 +08:00
sjinzh
063501068b
Update the coding style for Zig (#336)
* Update the coding style for Zig

* Update array.rs
2023-02-06 01:14:03 +08:00
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
2023-02-05 16:25:42 +08:00
Yudong Jin
7d14c9440e Unify the function naming of
queue from `offer()` to `push()`
2023-02-02 01:43:01 +08:00
sjinzh
6cd6d5589e
fix bug for commit 5eae708 (#317) 2023-02-01 21:13:30 +08:00
Yudong Jin
5eae708035 Fix array queue. 2023-02-01 03:23:29 +08:00
sjinzh
d9f8c53e4a
add zig codes for Section Queue and Deque (#291)
* add zig codes for Section 'Queue'

* update zig codes for Section 'Queue'

* update zig codes for Section 'Queue'

* update zig codes for Section 'Queue'

* update zig codes for Section 'Queue' and 'Deque'

* update zig codes for Section 'Queue' and 'Deque'

* update zig codes for Section 'Queue' and 'Deque'
2023-01-21 01:22:13 +08:00
sjinzh
8ea7abb242 fix bug 2023-01-14 08:26:44 +08:00
sjinzh
8726934f94 add zig codes for Section 'Stack', 'Bubble Sort' and 'Insertion Sort' 2023-01-12 21:51:11 +08:00