126 Commits

Author SHA1 Message Date
d3cc149c5a Merge the chapter of binary tree and searching. 2023-05-21 19:26:52 +08:00
b5eb9ca271 feat: Add the section of binary search edge. (#508)
* Add the section of binary search edge.

* Delete binary_search_rotation.py
2023-05-21 19:04:21 +08:00
c3e7455285 Refactor the section of bianry search. 2023-05-21 04:51:32 +08:00
399e5df39a Polish some cotents. 2023-05-18 20:27:58 +08:00
817b4598d5 Fix a comment in binary_search_tree code 2023-05-17 19:04:46 +08:00
b093162208 Fix my_list.py 2023-05-17 04:46:55 +08:00
fe69f7240d Add figures to replace_linear_by_hashing.md 2023-05-09 00:36:18 +08:00
67d647ab59 feat: Add the section of n queens problem (#483)
* Add the section of n queens problem

* Update n_queens.py

* Update n_queens.java

* Update n_queens.cpp

* Update n_queens.java
2023-05-04 05:27:17 +08:00
bc77a81330 Update the codes of backtracking. 2023-04-27 02:17:04 +08:00
3f430fb85e Update the code of permutations i and ii 2023-04-27 01:18:18 +08:00
c6eecfd0dc feat: Add the section of permutations problem. (#476)
* Add the section of permutations problem.

* Update permutations_problem.md
2023-04-24 03:33:30 +08:00
de579aa3f4 Fix the file headers. 2023-04-23 19:36:07 +08:00
3590262c7e Modify the exception handling in Java and Python. 2023-04-23 03:41:39 +08:00
bad759b4f8 Rename the naming of the coding files
in backtracking algorithm.
Add the typedef to docs.
2023-04-22 01:38:53 +08:00
881d573790 Refactor the articles related to searching algorithm. Add the chapter of binary search. Add the section of searching algorithm revisited. (#464) 2023-04-17 18:22:18 +08:00
1600ed6dee Fix the codes of backtracking. 2023-04-16 05:14:15 +08:00
49606fd199 Add the chapter of backtracking. (#459) 2023-04-16 04:52:42 +08:00
f7ae9c8a02 Fix the return type of binary search tree and avl tree 2023-04-14 05:47:20 +08:00
f8513455b5 Format the Java codes with the Reat Hat extension. 2023-04-14 00:12:10 +08:00
0bec52d7cc Polish the chapter of heap, introduction, preface.
Replace "其它" with "其他"
2023-04-09 19:12:37 +08:00
10e2180013 Unify the comment style of python codes 2023-04-09 05:30:02 +08:00
5ddcb60825 Format python codes with black. (#453) 2023-04-09 05:05:35 +08:00
1c8b7ef559 refactor: Replace 结点 with 节点 (#452)
* Replace 结点 with 节点
Update the footnotes in the figures

* Update mindmap

* Reduce the size of the mindmap.png
2023-04-09 04:32:17 +08:00
830ec69d39 Add bucket_sort.cpp and bucket_sort.py (#446) 2023-03-30 03:44:26 +08:00
34a1bca627 Add the section of radix sort. (#441) 2023-03-26 22:02:37 +08:00
22898b6955 Simplify the contents of the sorting algorithms. 2023-03-25 18:41:22 +08:00
0a4a846e13 Fix python modules 2023-03-23 18:56:14 +08:00
8918ec9079 refactor: Follow the PEP 585 Typing standard (#439)
* Follow the PEP 585 Typing standard

* Update list.py
2023-03-23 18:51:56 +08:00
65e47b0748 Add Python and C++ code for the counting sort. (#436) 2023-03-21 22:24:17 +08:00
518b9efabc Update a comment in array_hash_map 2023-03-15 03:48:31 +08:00
d5afd93571 Update array_hash_map 2023-03-15 03:11:43 +08:00
28aacccf44 refactor: Replace 'poll' with 'pop' in Heap (#416) 2023-03-13 22:31:05 +08:00
8aebbaad21 refactor: Replace poll with pop in Queue and Deque (#415) 2023-03-13 21:58:21 +08:00
9151eaf533 Add typing annotations to Python codes. (#411) 2023-03-12 18:49:52 +08:00
bbef87ccfe Update the applications of deque. 2023-03-12 02:45:10 +08:00
7c501140f0 Update code style for Python 2023-03-03 03:07:22 +08:00
0ed596e251 Add array_deque.py and linkedlist_deque.py (#399) 2023-03-01 03:47:28 +08:00
9ea24e8b26 Change the operations sequence of the likedlist's insert() method. 2023-02-27 20:25:43 +08:00
037aaeeaa2 fix: update the code comment (#386)
Co-authored-by: steak-zhuo <zhuoqinyue@gmail.com>
2023-02-26 01:16:41 +08:00
adbb12c011 Fix a comment in graph_adjacency_list 2023-02-23 20:32:26 +08:00
73c8920c6b Add python code of Heap and Graph to docs. 2023-02-23 20:23:49 +08:00
1f4dba4845 Add the Python codes for the chapter of Graph and Heap (#382) 2023-02-23 20:00:40 +08:00
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
7238c560d1 Update binary_tree_bfs codes 2023-02-15 03:36:22 +08:00
300016393b Add code source blocks to the chapter Graph.
Fix "函数" and "方法"
2023-02-10 01:04:26 +08:00
05f0054005 Add build script for JS and TS codes. 2023-02-08 19:45:06 +08:00
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
ea901af217 1. Add the building util of Python
for the markdown docs.
2. Update the deploy.sh
2023-02-06 23:23:21 +08:00
94cba488ef Fix leetcode_two_sum.py 2023-02-06 04:34:01 +08:00