当前位置:网站首页>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
边栏推荐
- 双链表有关操作
- Typora adds watermarks to automatically uploaded pictures
- BIM and safety in road maintenance-buildSmart Spain
- 【20211129】Jupyter Notebook遠程服務器配置
- Golang introduces the implementation method of the corresponding configuration file according to the parameters
- Le semester manquant
- [datawhale202206] pytorch recommendation system: recall model DSSM & youtubednn
- 自组织是管理者和成员的双向奔赴
- 【20220605】文献翻译——虚拟现实中的可视化:一个系统的回顾
- [Maui] add click events for label, image and other controls
猜你喜欢
巩固-C#运算符
The Missing Semester
自组织是管理者和成员的双向奔赴
[classic example] classic list questions @ list
What are the PHP FPM configuration parameters
Message queue monitoring refund task batch process
Seckill system 03 - redis cache and distributed lock
Onenet Internet of things platform - create mqtts products and devices
[106] 360 check font - check whether the copyright of local Fonts is commercially available
Arm GIC (V) how arm TrustZone supports security interrupt analysis notes.
随机推荐
Machine learning - Data Science Library Day 3 - Notes
本科毕业四年:工作,辞职,结婚,买房
On recursion and Fibonacci sequence
Talk about biological live broadcast - genovis Zhang Hongyan antibody specific enzyme digestion technology helps to characterize the structure of antibody drugs
强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
Joint Time-Frequency and Time Domain Learning for Speech Enhancement
顺序表有关操作
Friends day 2022
AI matting tool
Mysql database knowledge collation
Typora realizes automatic uploading of picture pasting
The operation process of using sugar to make a large data visualization screen
消息队列之监控退款任务批处理过程
[datawhale202206] pytorch recommendation system: multi task learning esmm & MMOE
Summary of JFrame knowledge points 2
Ansible相关内容梳理
Unity XLua 协程封装
【datawhale202206】pyTorch推荐系统:召回模型 DSSM&YoutubeDNN
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 2
编译调试Net6源码