当前位置:网站首页>Circular linked list--
Circular linked list--
2022-07-01 12:23:00 【Between the steps】
Circular single chain table
bool InitList(LinkList &L){
L=(LNode*)malloc (sizeof(LNode));
if(L==NULL){
return false;
}
L->next=L; // Head node next Point to the head node
return true;
}
// Sentenced to empty
bool Empty(LinkList L){
if(L->next=L)
return true;
else
return false;
}
bool isTail(LinkList L){
if(L->next==L)
return true;
else
return false;
}
Circular double linked list
bool InitDLinkList(DLinkList &L){
L=(LNode*)malloc (sizeof(LNode)); // Assign a head node
if(L==NULL){
return false;
}
L->prior=L; // The first node prior Point to the head node
L->next=L; // Head node next Point to the head node
return true;
}
Double-linked list inserts and deletes , If it is a circular double linked list , Regardless of tail node NULL

Judge whether the circular double linked list is empty Is it a tail node
边栏推荐
- Dlhsoft Kanban, Kanban component of WPF
- Use of easyexcel
- 区间乘积的因子数之和——前缀和思想+定一移二
- Le semester manquant
- BIM and safety in road maintenance-buildSmart Spain
- 91. (cesium chapter) cesium rocket launch simulation
- 队列的链式存储
- GID: open vision proposes a comprehensive detection model knowledge distillation | CVPR 2021
- AI matting tool
- Golang des-cbc
猜你喜欢
![[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 5](/img/f5/9c68b3dc30362d3776c262fdc13fd0.jpg)
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 5

Four years after graduation: work, resign, get married, buy a house

比特熊直播间一周年,英雄集结令!邀你来合影!

【20211129】Jupyter Notebook遠程服務器配置

Summary of JFrame knowledge points 1
![[MCU] [nixie tube] nixie tube display](/img/5e/9e14302b4e4f5e03601392ac90479d.png)
[MCU] [nixie tube] nixie tube display

本科毕业四年:工作,辞职,结婚,买房

JS reverse | m3u8 data decryption of a spring and autumn network

栈-------
![[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 2](/img/2b/f42ac6745eb126254af62ad5217f70.jpg)
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 2
随机推荐
JS reverse | m3u8 data decryption of a spring and autumn network
MySQL data table creation
Leetcode (Sword finger offer) - 58 - ii Rotate string left
C knowledge point form summary 2
CPI教程-异步接口创建及使用
Good luck brought by years of persistence
Interpretation of R & D effectiveness measurement framework
ASP.NET Core 6 从入门到企业级实战开发应用技术汇总
Sort out relevant contents of ansible
强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
The Missing Semester
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 2
[JS advanced] promise explanation
巩固-C#运算符
[some notes]
Blue Bridge Cup multi interface switching processing (enumeration plus state machine method)
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 7
Onenet Internet of things platform - mqtt product equipment upload data points
Fatal error: execution: there is no such file or directory
C serialization simple experiment

