Modify code and comments (#473)

* 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

* fix(codes/c): Fix some errors of cmake build

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

* styles(codes/c): Modify function description

* styles(codes/c): Modify binary_search.c code style

---------

Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
gonglja
2023-04-22 02:03:24 +08:00
committed by GitHub
parent bad759b4f8
commit ac6eece4f3
2 changed files with 21 additions and 21 deletions

View File

@@ -37,7 +37,7 @@ struct linkedListDeque {
typedef struct linkedListDeque linkedListDeque;
/* 构造j */
/* 构造函数 */
linkedListDeque *newLinkedListDeque() {
linkedListDeque *deque = (linkedListDeque *)malloc(sizeof(linkedListDeque));
deque->front = NULL;