mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-02 02:02:57 +08:00
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:
@@ -37,7 +37,7 @@ struct linkedListDeque {
|
||||
|
||||
typedef struct linkedListDeque linkedListDeque;
|
||||
|
||||
/* 构造j */
|
||||
/* 构造函数 */
|
||||
linkedListDeque *newLinkedListDeque() {
|
||||
linkedListDeque *deque = (linkedListDeque *)malloc(sizeof(linkedListDeque));
|
||||
deque->front = NULL;
|
||||
|
||||
Reference in New Issue
Block a user