Commit graph

18 commits

Author SHA1 Message Date
LoneRanger
8e9eecd610
Part Heap : Code Translation into C++ (heap.cpp) (#285)
* 添加heap章节C++版本关于heap的相关操作

* 完善C++版本的heap相关操作

* 完善C++版本的heap相关操作

* fix printHeap function
2023-02-04 14:35:45 +08:00
Yudong Jin
bb657f9517 Add destructors to the C++ codes. 2023-01-14 19:52:11 +08:00
ubuntu
08afeb2981 fix(codes/cpp): fix worst_best_time_complexity.cpp compile error. 2023-01-11 22:50:23 +08:00
Yudong Jin
dcc3b2e35b Optimize arrToTree function
in java, cpp, py, go, js, ts.
2023-01-08 19:03:22 +08:00
dumingyu
98d1244e32 fix(codes/cpp): add climits headers
This fixes clang++ compile error when using INT_MAX in PrintUtil.
2023-01-06 11:00:12 +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
machangxin
aeb4e6077d Add C++, Python, Go code for chapter_hashing 2022-12-14 17:18:32 +08:00
mgisr
24077ae392 fix(avl tree): fix all issue 2022-12-04 08:22:37 +08:00
mgisr
641cf74afc feat(codes/cpp/include/TreeNode.cpp): add 'parent' and 'height' field 2022-12-03 17:17:58 +08:00
mgisr
84825a22d9 fix(codes/cpp/include/TreeNode.hpp): Fix 'vecToTree' function 2022-12-01 09:09:34 +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
980eaf65e0 Add a lib in include.hpp 2022-11-29 00:37:07 +08:00
Yudong Jin
a8afc963b6
Update PrintUtil.hpp
Reverse the stack before printing.
2022-11-28 20:51:12 +08:00
qualifier1024
26f9d6363e
Update PrintUtil.hpp
补充了stack打印方法,形式为"top->num1, num2]"
我不确定这么做是否规范
2022-11-28 09:32:05 +08:00
Yudong Jin
731e98fc25 Add C++ codes for the chapter
array and linked list.
2022-11-27 19:07:35 +08:00
Yudong Jin
19a4ccd86a Add cpp codes for the chapter
computational complexity, sorting, searching.
2022-11-27 04:20:30 +08:00
krahets
9a861140d8 Rearrange the chapters.
Start to translate codes from Java to Python.
2022-11-25 02:04:38 +08:00