mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-05 11:41:22 +08:00
build
This commit is contained in:
@@ -1043,6 +1043,8 @@ comments: true
|
||||
struct doublyListNode *prev; // 前驱节点
|
||||
};
|
||||
|
||||
typedef struct doublyListNode doublyListNode;
|
||||
|
||||
/* 构造函数 */
|
||||
doublyListNode *newDoublyListNode(int num) {
|
||||
doublyListNode *new = (doublyListNode *)malloc(sizeof(doublyListNode));
|
||||
@@ -1063,6 +1065,8 @@ comments: true
|
||||
int queSize; // 双向队列的长度
|
||||
};
|
||||
|
||||
typedef struct linkedListDeque linkedListDeque;
|
||||
|
||||
/* 构造j */
|
||||
linkedListDeque *newLinkedListDeque() {
|
||||
linkedListDeque *deque = (linkedListDeque *)malloc(sizeof(linkedListDeque));
|
||||
@@ -2166,6 +2170,8 @@ comments: true
|
||||
int queCapacity; // 队列容量
|
||||
};
|
||||
|
||||
typedef struct arrayDeque arrayDeque;
|
||||
|
||||
/* 构造函数 */
|
||||
arrayDeque *newArrayDeque(int capacity) {
|
||||
arrayDeque *deque = (arrayDeque *)malloc(sizeof(arrayDeque));
|
||||
|
||||
Reference in New Issue
Block a user