数据结构 - 双向链表
这里我们主要介绍的是链表中最复杂的结构:循环双向链表(Circular Doubly Linked List)
数据结构:
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
typedef int DataType;
typedef struct CDList {
DataType data;
struct CDList *prev; // 指向上一结点
struct CDList *next; // 指向下一结点
} Node;
2022年8月9日大约 3 分钟