循环单链表相较单链表优点之一就是不需要每次都从开头处开始进行遍历。
数据结构
typedef struct CLinkList{
datatype info;
struct LinkList* next;
}CNode;
基本操作
//循环单链表
CNode* init_clink_list();
CNode* get_rear_clink_list(CNode* head);
void print_clink_list(CNode* head);
CNode* insert_in_front_clink_list(CNode* head, datatype x);
CNode* find_num_clink_list(CNode* head, datatype x);
CNode* find_pos_clink_list(CNode* head, int i);
CNode* insert_x_after_y(CNode* head, datatype x, datatype y);
CNode* insert_x_after_i(CNode* head, datatype x, int i);
CNode* delete_num_clink_list(CNode* head, datatype x);
CNode* delete_pos_clink_list(CNode* head, int i);
实现
待续。。。