Yudong Jin
f68bbb0d59
Update the book based on the revised second edition ( #1014 )
...
* Revised the book
* Update the book with the second revised edition
* Revise base on the manuscript of the first edition
2023-12-28 18:06:09 +08:00
krahets
9a5ab776d6
A bug fix.
2023-12-19 21:55:57 +08:00
Yudong Jin
e720aa2d24
feat: Revised the book ( #978 )
...
* Sync recent changes to the revised Word.
* Revised the preface chapter
* Revised the introduction chapter
* Revised the computation complexity chapter
* Revised the chapter data structure
* Revised the chapter array and linked list
* Revised the chapter stack and queue
* Revised the chapter hashing
* Revised the chapter tree
* Revised the chapter heap
* Revised the chapter graph
* Revised the chapter searching
* Reivised the sorting chapter
* Revised the divide and conquer chapter
* Revised the chapter backtacking
* Revised the DP chapter
* Revised the greedy chapter
* Revised the appendix chapter
* Revised the preface chapter doubly
* Revised the figures
2023-12-02 06:21:34 +08:00
krahets
d190dbf3c1
Several enhancements and fixes
2023-09-14 03:36:31 +08:00
krahets
145975b335
Rename the common modules in Java, C++ and C.
2023-04-24 04:11:18 +08:00
krahets
de579aa3f4
Fix the file headers.
2023-04-23 19:36:07 +08:00
krahets
9c9c8b7574
Format C++ codes in Clang-Format Style: Microsoft
2023-04-14 03:44:02 +08:00
Yudong Jin
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
Gonglja
3173d02538
fix(codes/cpp): Memory leak fix: the space was not freed when pop removed the element. ( #423 )
2023-03-19 23:46:48 +08:00
krahets
0840bc2043
Fix the deconstructor of linkedlist_queue.cpp
2023-03-16 18:43:13 +08:00
Gonglja
567497a6b8
Add cpp codes cmake build method ( #419 )
...
* feat(codes/cpp): Add cmake build method
* feat(codes/cpp): Modify the cpp support version to c++17
* feat(codes/cpp): fix graph_adjacency_list.cpp cannot be compiled into an executable
* style(codes/cpp): Adjust the code to enhance compatibility.
* feat(codes/cpp): Change cpp version from 17 to 11.
2023-03-14 20:40:33 +08:00
Yudong Jin
8aebbaad21
refactor: Replace poll with pop in Queue and Deque ( #415 )
2023-03-13 21:58:21 +08:00
krahets
82bbdd444d
Update the chapter of stack and queue.
2023-03-12 04:14:36 +08:00
Yudong Jin
33c797efeb
feat: Add C++ code for the graph bfs and dfs ( #401 )
...
* Add C++ code for the graph bfs and dfs
* Add C++ code for the graph bfs and dfs
2023-03-02 18:57:33 +08:00
Yudong Jin
4f941e3d99
Add C++ code for the linkedlist deque and array deque ( #400 )
2023-03-02 03:00:14 +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
6dc21691ed
Add build scripts for C# and
...
unify the coding style.
2023-02-08 22:18:02 +08:00
krahets
0407cc720c
Fix Repo
2023-02-08 04:17:26 +08:00
Yudong Jin
7d14c9440e
Unify the function naming of
...
queue from `offer()` to `push()`
2023-02-02 01:43:01 +08:00
Yudong Jin
5eae708035
Fix array queue.
2023-02-01 03:23:29 +08:00
Yudong Jin
bb657f9517
Add destructors to the C++ codes.
2023-01-14 19:52:11 +08:00
Yudong Jin
0e49f0053a
Update the format of the file headers
...
of c, cpp, java, js, ts, swift.
2023-01-06 03:39:19 +08:00
Yudong Jin
3302354909
Update cpp codes for the stack and the queue.
2023-01-05 01:45:08 +08:00
Yudong Jin
410c5d6b62
Free memory after removing
...
a node from a LinkedList or TreeNode.
2023-01-02 19:53:55 +08:00
Yudong Jin
f39636cb63
Update the structure of the chapter
...
of binary tree.
2022-12-21 17:19:39 +08:00
Yudong Jin
7283bbaf6f
Update the chapter of stack and queue.
2022-12-20 21:33:14 +08:00
Yudong Jin
fa3eff81d1
Update array stack.
2022-12-20 14:13:21 +08:00
tao363
fe7564d54d
master
2022-12-19 21:48:20 +08:00
Yudong Jin
ebf9024136
Add Go codes to docs, including
...
the chapter of stack and queue, the chapter of tree.
2022-12-03 20:25:24 +08:00
Yudong Jin
e20bc251f5
Add python code of chapter queue to docs.
2022-12-02 00:09:34 +08:00
Yudong Jin
acfdc713ba
update stack and queue.
2022-11-30 03:46:53 +08:00
Yudong Jin
8669e06414
Update stack and queue.
2022-11-30 02:27:26 +08:00
Yudong Jin
d2db8b8d60
Add C++ code for the chapter binary tree.
2022-11-29 02:21:49 +08:00
Yudong Jin
56ef5a71cd
Update array_stack.cpp
...
Make `vec` a private member.
2022-11-29 00:26:18 +08:00
qualifier1024
f772e28acb
Update array_stack.cpp
...
仿照linkedlist_stack实现的array_stack,补上了测试代码
2022-11-28 22:23:27 +08:00
Yudong Jin
f351987887
Merge pull request #43 from qualifier1024/patch-12
...
Update queue.cpp
2022-11-28 21:18:44 +08:00
Yudong Jin
d2296a978e
Merge pull request #41 from qualifier1024/patch-10
...
Update linkedlist_stack.cpp
2022-11-28 21:11:42 +08:00
Yudong Jin
30a115082b
Update linkedlist_stack.cpp
...
Remove constructor
2022-11-28 21:10:29 +08:00
Yudong Jin
c18affcea3
Update linkedlist_stack.cpp
...
Add test code.
2022-11-28 21:08:10 +08:00
qualifier1024
894d0dd64d
Update queue.cpp
...
译自大佬的Java代码,更改了部分表述
2022-11-28 21:07:55 +08:00
Yudong Jin
8b72cf5b35
Update stack.cpp
2022-11-28 20:22:21 +08:00
qualifier1024
06424ef023
Update linkedlist_stack.cpp
...
仿写的链表栈
2022-11-28 10:15:18 +08:00
qualifier1024
fe4af37290
Update stack.cpp
...
array.cpp修改了格式问题
2022-11-28 09:04:43 +08:00
Yudong Jin
431a0f6caf
1. Add C++ codes for the chapter of
...
computational complexity, sorting, searching.
2. Corrected some mistakes.
3. Update README.
2022-11-27 04:19:16 +08:00
krahets
9a861140d8
Rearrange the chapters.
...
Start to translate codes from Java to Python.
2022-11-25 02:04:38 +08:00