hello-algo/codes/cpp
Gonglja 8bc41bc013
Add space_complexit under C and fix memory leak under CPP (#456)
* 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

* fix(codes/cpp): Fix memory leaks: no delete

* fix(codes/cpp): Fix memory leaks: Add destructor ~ArrayHashMap()

* Update PrintUtil.hpp

* feat(codes/c): Add three-party hash implementation

* feat(codes/c): Add freeMemoryTree in tree_node.h

* feat(codes/c): Add space_complexity.c

* styles(codes/c): Modify format

* feat(codes/cpp): Undo a previous delete, there is no memory leak here

* Update array_hash_map.cpp

* Update include.h

---------

Co-authored-by: Yudong Jin <krahets@163.com>
2023-04-15 23:51:35 +08:00
..
chapter_array_and_linkedlist Format C++ codes in Clang-Format Style: Microsoft 2023-04-14 03:44:02 +08:00
chapter_computational_complexity Format C++ codes in Clang-Format Style: Microsoft 2023-04-14 03:44:02 +08:00
chapter_graph Format C++ codes in Clang-Format Style: Microsoft 2023-04-14 03:44:02 +08:00
chapter_hashing Add space_complexit under C and fix memory leak under CPP (#456) 2023-04-15 23:51:35 +08:00
chapter_heap Format C++ codes in Clang-Format Style: Microsoft 2023-04-14 03:44:02 +08:00
chapter_searching Format C++ codes in Clang-Format Style: Microsoft 2023-04-14 03:44:02 +08:00
chapter_sorting Format C++ codes in Clang-Format Style: Microsoft 2023-04-14 03:44:02 +08:00
chapter_stack_and_queue Format C++ codes in Clang-Format Style: Microsoft 2023-04-14 03:44:02 +08:00
chapter_tree Fix the return type of binary search tree and avl tree 2023-04-14 05:47:20 +08:00
include Format C++ codes in Clang-Format Style: Microsoft 2023-04-14 03:44:02 +08:00
.gitignore Update CMakeLists.txt for C++ 2023-03-15 01:43:28 +08:00
CMakeLists.txt Update CMakeLists.txt for C++ 2023-03-15 01:43:28 +08:00