krahets
9f59c572b5
fine tune
2023-09-17 01:13:15 +08:00
krahets
cb9c14f5ff
fix build_tree, binary_search_tree.cs
...
fix two figures
2023-09-15 02:08:09 +08:00
krahets
d190dbf3c1
Several enhancements and fixes
2023-09-14 03:36:31 +08:00
malone6
a9d70e9e4b
fix: raise error in peek() function of linkedlist_stack.py, linkedlist_queue.py, linkedlist_deque.py ( #754 )
...
* fix: linkedlist_stack.py 中的peek方法需要判空raise Error
栈空的时候不能再 peek() 。另外由于 pop() 复用了 peek() ,栈空时返回的 None 会传递到 pop() 中的 num ,导致后续的继续执行
self.peek.next 报错等后续问题
* Update linkedlist_stack.py
* Update linkedlist_queue.py
* Update linkedlist_deque.py
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2023-09-14 01:22:53 +08:00
krahets
5f814d6538
Add comparison between iteration and recursion.
...
Fix the figure of tail recursion.
Fix two links.
2023-09-12 00:56:59 +08:00
krahets
f71b2a40da
fix preorder_traversal_iii_compact code
2023-09-09 00:51:00 +08:00
krahets
dd72335235
Format C, C++, C#, Go, Java, Python, Rust code.
2023-09-02 23:54:38 +08:00
krahets
a47a974a6a
fix climbing_stairs_constraint_dp code
2023-08-31 02:31:58 +08:00
krahets
628d8a516b
fix binary_search_tree code
2023-08-31 02:31:31 +08:00
krahets
9731a46d67
Fix a definition.
2023-08-27 00:50:18 +08:00
krahets
ae304bd605
Update iteration code.
2023-08-25 02:22:57 +08:00
Yudong Jin
3e64f68ae9
Add the section of iteration and recursion. ( #693 )
2023-08-24 17:51:41 +08:00
krahets
f5dda8d99a
Polish the content
2023-08-21 03:06:53 +08:00
krahets
2626de8d0b
Polish the chapter
...
introduction, computational complexity.
2023-08-20 14:51:39 +08:00
krahets
c310edb672
Polish the chapter of array and linkedlist
2023-08-17 05:13:19 +08:00
krahets
6ef4dc6444
Fix the content
2023-08-10 11:35:16 +08:00
krahets
932d14644d
Polish the content
...
Polish the chapter preface, introduction and complexity anlysis
2023-08-08 23:16:33 +08:00
Yudong Jin
71074d88f6
Add the section of binary search insertion. ( #671 )
...
Refactor the section of binary search edge.
Finetune the figures of binary search.
2023-08-04 05:16:56 +08:00
krahets
6da6d24193
Fix the code of hash map chaining.
2023-08-01 17:05:40 +08:00
krahets
dbe3b4d6ba
Fine tune.
2023-07-31 03:27:26 +08:00
krahets
b067016bfa
Update preorder_traversal_iii.
2023-07-25 16:39:38 +08:00
krahets
90af225dae
Remove -> None
for Python functions
2023-07-24 22:34:05 +08:00
krahets
bba62bbe75
Fix the code of preorder_traversal_iii_compact
2023-07-21 22:08:26 +08:00
Yudong Jin
075c3abf88
Add the section of max product cutting problem. ( #642 )
2023-07-21 21:56:14 +08:00
Yudong Jin
76f11ae168
Add the section of max capacity problem. ( #639 )
2023-07-21 15:16:51 +08:00
Yudong Jin
2b7d7aa827
Add the chapter of greedy. ( #633 )
...
Add the section of fractional knapsack.
2023-07-20 18:26:54 +08:00
krahets
c54536d1a1
Modify the problem of preorder_traversal_iii
2023-07-19 16:37:12 +08:00
krahets
4e13755023
Add implementation of array binary tree.
...
Rewrite the tree serialization and deserialization methods.
Add applications of array and linked list.
2023-07-19 16:09:27 +08:00
krahets
c68f18e480
Finetune
2023-07-19 01:45:14 +08:00
krahets
1f784dadb0
Add Java and C++ code for the chapter of
...
divide and conquer.
2023-07-17 04:20:12 +08:00
krahets
fc7bcb615d
Add the section of binary_search_recur.
2023-07-17 03:48:33 +08:00
Yudong Jin
909daea105
Add the section of hanota problem. ( #614 )
2023-07-17 02:20:49 +08:00
krahets
f839dc1b0e
Fix naming of the section
...
build_binary_tree_problem
2023-07-17 02:18:53 +08:00
Yudong Jin
51a4c5089e
feat: Add the chapter of divide and conquer ( #609 )
...
* Add the chapter of divide and conquer.
Add the section of divide and conquer algorithm.
Add the section of build tree problem.
* Update build_tree.py
2023-07-16 04:24:04 +08:00
Yudong Jin
c3f80e52af
Add the section of edit distance problem ( #599 )
2023-07-13 05:27:47 +08:00
krahets
1c02859b13
Add the section of unbounded knapsack problem.
2023-07-11 19:22:41 +08:00
krahets
ad0fd45cfb
Add Java and C++ code for the chapter of DP.
2023-07-11 01:08:26 +08:00
krahets
465dafe9ec
Update the text and code of DP.
2023-07-10 20:36:48 +08:00
Yudong Jin
d6cc92614c
add the section of dp solution pipeline ( #588 )
2023-07-09 02:43:00 +08:00
krahets
cddddb8b8b
Update knapsack_problem and intro_to_dp
...
Fix avl_tree
2023-07-09 02:39:58 +08:00
Yudong Jin
55d8b710fa
Add the section of knapsack problem. ( #580 )
2023-07-06 00:06:14 +08:00
krahets
470bc10a74
Fix some contents.
2023-07-06 00:04:11 +08:00
krahets
69920a0599
Fix binary search.
...
Finetune a figure in intro_to_dp.
2023-07-01 20:07:21 +08:00
krahets
920512d872
Update the section of intro to DP.
2023-07-01 03:02:50 +08:00
krahets
ba481cb8e6
Simplify the python code of bst and avl tree.
2023-06-30 05:17:30 +08:00
krahets
98e797f1fc
Fix the bst python code.
...
Fitune the chapters name.
2023-06-30 05:09:17 +08:00
Yudong Jin
3f03663d2e
feat: add the section of the introduction to dynamic programming ( #571 )
...
* add the section of the introduction to
dynamic programming
* add a code comments.
2023-06-30 04:31:43 +08:00
krahets
54dc288e61
1. Remove Pair class from hash coliision code.
...
2. Fix the comment in my_list code.
3. Add a Q&A to the summary of sorting.
2023-06-26 23:06:15 +08:00
Yudong Jin
1b1af8d038
Add Java and C++ code for the section hash algorithm ( #560 )
2023-06-21 19:26:16 +08:00
Yudong Jin
0e2ddba30f
Add the section of subset sum problem. ( #558 )
2023-06-21 02:58:24 +08:00