Commit graph

55 commits

Author SHA1 Message Date
krahets
9ea24e8b26 Change the operations sequence of the likedlist's insert() method. 2023-02-27 20:25:43 +08:00
krahets
0b72fef381 Fix quick_sort.py 2023-02-21 21:51:56 +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
7238c560d1 Update binary_tree_bfs codes 2023-02-15 03:36:22 +08:00
krahets
300016393b Add code source blocks to the chapter Graph.
Fix "函数" and "方法"
2023-02-10 01:04:26 +08:00
sjinzh
08b7474894
Update the coding style for Rust and Zig (#356)
Co-authored-by: Yudong Jin <krahets@163.com>
2023-02-09 23:07:43 +08:00
krahets
ec25970e8e Update .gitignore
Add build script for Zig.
2023-02-09 22:57:25 +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
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
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
f14e3e4c57 Update linear_search and hashing_search. 2023-02-04 23:49:37 +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
b39b84acba Update avl_tree 2023-02-03 18:58:01 +08:00
Yudong Jin
70dead5cd0 Update worst_best_time_complexity,
leetcode_two_sum
2023-02-03 18:53:15 +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
Yudong Jin
ddd5562b60 Fix the index out of bound check in my_list. 2023-01-30 17:50:07 +08:00
sjinzh
b951eb0cfc
add zig codes for Section Binary Tree, Binary Search Tree and AVL Tree (#293)
* add zig codes for Section 'Binary Tree'

* add zig codes for Section 'Binary Tree'

* add zig codes for Section 'Binary Tree'

* add zig codes for Section 'Binary Tree'

* add zig codes for Section 'Binary Tree' and 'Binary Search Tree'

* update zig codes for Section 'Binary Tree' and 'Binary Search Tree'

* update zig codes for Section 'Binary Tree', 'Binary Search Tree' and 'AVL Tree'
2023-01-28 00:47:58 +08:00
sjinzh
fc8bbb7d1c
add zig codes for Section 'Binary Tree' (#292)
* add zig codes for Section 'Binary Tree'

* add zig codes for Section 'Binary Tree'
2023-01-21 16:19:26 +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
1cc743e97a
add zig codes for Section Quick Sort, Merge Sort, Radix Sort (#282)
* add zig codes for Section 'Quick Sort' (quick_sort.zig), 'Merge Sort' (merge_sort.zig)

* add zig codes for Section 'Quick Sort' (quick_sort.zig), 'Merge Sort' (merge_sort.zig)

* add zig codes for Section 'Quick Sort' (quick_sort.zig), 'Merge Sort' (merge_sort.zig), 'Radix Sort' (radix_sort.zig)

* add zig codes for Section 'Quick Sort' (quick_sort.zig), 'Merge Sort' (merge_sort.zig), 'Radix Sort' (radix_sort.zig)
2023-01-19 23:27:14 +08:00
sjinzh
cee7b0f4f9 add zig codes for Section 'Binary Search' (binary_search.zig), 'Hash Search' (hashing_search.zig) 2023-01-18 23:40:43 +08:00
sjinzh
d1866201c3 update zig codes for Section 'Hash Map' (array_hash_map.zig) 2023-01-18 08:58:41 +08:00
sjinzh
cb0a3f868d update zig codes for Section 'Heap' (my_heap.zig) 2023-01-16 19:32:12 +08:00
sjinzh
67f5050ca4 add zig codes for Section 'Heap' (my_heap.zig) 2023-01-16 17:34:03 +08:00
sjinzh
54ca41a896 update zig codes for Section 'Heap' (heap.zig) 2023-01-16 06:16:20 +08:00
sjinzh
a634b49378 update zig codes for Section 'Heap' (heap.zig) 2023-01-16 06:15:19 +08:00
sjinzh
58d5c117f8 update zig codes for Section 'Heap' (heap.zig) 2023-01-16 05:30:46 +08:00
sjinzh
73121c2cb3 update zig codes for Section 'Heap' (heap.zig) 2023-01-16 00:05:56 +08:00
sjinzh
d8289580a5 update zig codes for Section 'Heap' (heap.zig) 2023-01-15 20:57:01 +08:00
sjinzh
5e17778f69 update zig codes for Section 'Heap' (heap.zig) 2023-01-15 20:39:46 +08:00
sjinzh
5bda3dd91f add zig codes for Section 'Heap' (heap.zig) 2023-01-14 22:28:23 +08:00
sjinzh
3782296de3 add zig codes for Section 'Hash Map', 'Binary Tree', 'Linear Search' 2023-01-14 18:03:32 +08:00
sjinzh
de2c9c352d add zig codes for Section 'Binary Tree' 2023-01-14 08:48:12 +08:00
sjinzh
e8f1a676b2 add zig codes for Section 'Binary Tree' 2023-01-14 08:47:50 +08:00
sjinzh
8ea7abb242 fix bug 2023-01-14 08:26:44 +08:00
sjinzh
5fee1901cc add zig codes for Section 'Hash Map', 'Linear Search' and 'Heap' 2023-01-14 08:11:54 +08:00
sjinzh
6f65c84e36 add zig codes for Section 'Hash Map' and 'Linear Search' 2023-01-13 23:40:37 +08:00
sjinzh
722fb71bdd add zig codes for Section 'Hash Map' and 'Linear Search' 2023-01-13 23:23:26 +08:00
sjinzh
71a56f94c8 add zig codes for Section 'Hash Map' 2023-01-13 20:17:44 +08:00
sjinzh
8726934f94 add zig codes for Section 'Stack', 'Bubble Sort' and 'Insertion Sort' 2023-01-12 21:51:11 +08:00
sjinzh
8325ce4474 update zig codes for Section 'Array', 'LinkedList', 'List' and 'Stack' 2023-01-12 17:08:33 +08:00
sjinzh
d75a3582b0 add zig codes for Section 'Array', 'LinkedList' and 'List' 2023-01-11 19:56:25 +08:00
sjinzh
2367318a28 add zig codes for Section 'Array', 'LinkedList' and 'List' 2023-01-11 18:05:42 +08:00
sjinzh
82f9542abe add zig codes for Section 'Array', 'LinkedList' and 'List' 2023-01-11 17:43:52 +08:00
sjinzh
a1579f6f7e add zig codes for Section 'Array', 'LinkedList' and 'List' 2023-01-11 17:39:28 +08:00
sjinzh
3e9edf7115 delete system info output in zig codes 2023-01-11 12:34:54 +08:00
sjinzh
749570da0d fix bug 2023-01-10 19:44:04 +08:00