mirror of
https://github.com/krahets/hello-algo.git
synced 2026-02-12 23:25:44 +08:00
build
This commit is contained in:
@@ -685,6 +685,8 @@ comments: true
|
||||
int queSize;
|
||||
};
|
||||
|
||||
typedef struct linkedListQueue linkedListQueue;
|
||||
|
||||
/* 构造函数 */
|
||||
linkedListQueue *newLinkedListQueue() {
|
||||
linkedListQueue *queue = (linkedListQueue *)malloc(sizeof(linkedListQueue));
|
||||
@@ -1459,6 +1461,8 @@ comments: true
|
||||
int queCapacity; // 队列容量
|
||||
};
|
||||
|
||||
typedef struct arrayQueue arrayQueue;
|
||||
|
||||
/* 构造函数 */
|
||||
arrayQueue *newArrayQueue(int capacity) {
|
||||
arrayQueue *queue = (arrayQueue *)malloc(sizeof(arrayQueue));
|
||||
|
||||
Reference in New Issue
Block a user