Gonglja
b9e97d3823
Fix access error when printArray(arr, 0) ( #432 )
...
* fix(codes/cpp): Memory leak fix: the space was not freed when pop removed the element.
* fix(codes/cpp): Fix access error when printArray(arr, 0)
* Update PrintUtil.hpp
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Gonglja
0659c54e77
Fix memory leaks ( #433 )
...
* fix(codes/cpp): Memory leak fix: the space was not freed when pop removed the element.
* fix(codes/cpp): Fix access error when printArray(arr, 0)
* fix(codes/cpp): Fix memory leaks: replace pointers with local variables, no need to manage memory
2 years ago
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.
2 years ago
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
2 years ago
LoneRanger
7f4243ab77
fix Pointer recycle ( #346 )
2 years ago
LoneRanger
0b16a9f6a9
Part Heap : Code Translation into C++ (my_heap.cpp) ( #321 )
...
* 增加my_heap.cpp并补充对应的文档
* 修改heap.md
* Update my_heap.cpp
* Update heap.md
* Update my_heap.cpp
* Update my_heap.cpp
* Update heap.md
* Update my_heap.cpp
* Update my_heap.cpp
* Update heap.md
---------
Co-authored-by: Yudong Jin <krahets@163.com>
2 years ago
Yudong Jin
6ca5fa7d93
Update heap.cpp
2 years ago
LoneRanger
8e9eecd610
Part Heap : Code Translation into C++ (heap.cpp) ( #285 )
...
* 添加heap章节C++版本关于heap的相关操作
* 完善C++版本的heap相关操作
* 完善C++版本的heap相关操作
* fix printHeap function
2 years ago
Yudong Jin
bb657f9517
Add destructors to the C++ codes.
2 years ago
ubuntu
08afeb2981
fix(codes/cpp): fix worst_best_time_complexity.cpp compile error.
2 years ago
Yudong Jin
dcc3b2e35b
Optimize arrToTree function
...
in java, cpp, py, go, js, ts.
2 years ago
dumingyu
98d1244e32
fix(codes/cpp): add climits headers
...
This fixes clang++ compile error when using INT_MAX in PrintUtil.
2 years ago
Yudong Jin
0e49f0053a
Update the format of the file headers
...
of c, cpp, java, js, ts, swift.
2 years ago
machangxin
aeb4e6077d
Add C++, Python, Go code for chapter_hashing
2 years ago
mgisr
24077ae392
fix(avl tree): fix all issue
2 years ago
mgisr
641cf74afc
feat(codes/cpp/include/TreeNode.cpp): add 'parent' and 'height' field
2 years ago
mgisr
84825a22d9
fix(codes/cpp/include/TreeNode.hpp): Fix 'vecToTree' function
2 years ago
Yudong Jin
8669e06414
Update stack and queue.
2 years ago
Yudong Jin
d2db8b8d60
Add C++ code for the chapter binary tree.
2 years ago
Yudong Jin
980eaf65e0
Add a lib in include.hpp
2 years ago
Yudong Jin
a8afc963b6
Update PrintUtil.hpp
...
Reverse the stack before printing.
2 years ago
qualifier1024
26f9d6363e
Update PrintUtil.hpp
...
补充了stack打印方法,形式为"top->num1, num2]"
我不确定这么做是否规范
2 years ago
Yudong Jin
731e98fc25
Add C++ codes for the chapter
...
array and linked list.
2 years ago
Yudong Jin
19a4ccd86a
Add cpp codes for the chapter
...
computational complexity, sorting, searching.
2 years ago
krahets
9a861140d8
Rearrange the chapters.
...
Start to translate codes from Java to Python.
2 years ago