当前位置:网站首页>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
边栏推荐
- C knowledge point form summary 2
- 栈-------
- Why does the JVM heap memory exceed 32g and pointer compression fail?
- 第十四章 信号(四)- 多进程任务示例
- Wechat applet reports an error: [rendering layer network layer error] pages/main/main Local resource pictures in wxss cannot be obtained through wxss. You can use network pictures, Base64, or < image/
- CPI教程-异步接口创建及使用
- usb peripheral 驱动 - cable connect/disconnect
- LeetCode力扣(剑指offer 31-35)31. 栈的压入弹出序列32I.II.III.从上到下打印二叉树33. 二叉搜索树的后序遍历序列34. 二叉树中和为某一值的路径35. 复杂链表的复制
- C summary of knowledge points 1
- Seckill system 03 - redis cache and distributed lock
猜你喜欢

Sort out relevant contents of ansible

Ansible相关内容梳理
![[datawhale202206] pytorch recommendation system: recall model DSSM & youtubednn](/img/f2/7931952b832e84d7b8f2615906f33f.png)
[datawhale202206] pytorch recommendation system: recall model DSSM & youtubednn

Arm GIC (V) how arm TrustZone supports security interrupt analysis notes.

【20211129】Jupyter Notebook远程服务器配置
![[some notes]](/img/91/7657f90b50f012736579b1585b4ade.jpg)
[some notes]

C serialization simple experiment

How to install php7 and perform performance test using yum

LeetCode力扣(剑指offer 31-35)31. 栈的压入弹出序列32I.II.III.从上到下打印二叉树33. 二叉搜索树的后序遍历序列34. 二叉树中和为某一值的路径35. 复杂链表的复制
![[Yunju entrepreneurial foundation notes] Chapter VII Entrepreneurial Resource test 1](/img/be/1194125442aaa2d7cc20b6a4a6762a.jpg)
[Yunju entrepreneurial foundation notes] Chapter VII Entrepreneurial Resource test 1
随机推荐
【20220605】文献翻译——虚拟现实中的可视化:一个系统的回顾
Friends day 2022
Computer graduation project asp Net hotel room management system VS development SQLSERVER database web structure c programming computer web page source code project
MySQL workbench data modeling function
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 8
【datawhale202206】pyTorch推荐系统:召回模型 DSSM&YoutubeDNN
【MAUI】为 Label、Image 等控件添加点击事件
强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
JPA and criteria API - select only specific columns - JPA & criteria API - select only specific columns
Wechat applet reports an error: [rendering layer network layer error] pages/main/main Local resource pictures in wxss cannot be obtained through wxss. You can use network pictures, Base64, or < image/
Use of easyexcel
Technology sharing | MySQL: how about copying half a transaction from the database?
Golang des-cbc
fatal error: execution: 没有那个文件或目录
The specified service is marked for deletion
NOV Schedule for . Net to display and organize appointments and recurring events
JS reverse | m3u8 data decryption of a spring and autumn network
Pandas reads MySQL data
Message queue monitoring refund task batch process
MySQL data table creation

