![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
Moon's words
这个作者很懒,什么都没留下…
展开
-
数据结构 链式线性表的基本操作
Description 编写算法,创建一个含有n个元素的带头结点的单链表L并实现插入、删除、遍历操作。 #include<stdio.h> #include<malloc.h> #define ERROR 0 #define OK 1 #define ElemType int typedef struct LNode { int data; struct LNode *next; }LNode,*LinkList; int CreateLink_L(LinkLis原创 2021-03-20 09:49:27 · 536 阅读 · 0 评论 -
数据结构 合并顺序表
Description 若线性表中数据元素相互之间可以比较,且数据元素在表中按值递增或递减,则称该表为有序表。 编写算法,将两个非递减有序顺序表A和B合并成一个新的非递减有序顺序表C。 #include <stdio.h> #include <stdlib.h> #include<malloc.h> #define OK 1 #define ERROR 0 #define LIST_INIT_SIZE 100 #define ElemType int typedef i原创 2021-03-19 00:00:23 · 596 阅读 · 0 评论 -
数据结构 顺序表的基本操作
Description : 编写算法,创建初始化容量为LIST_INIT_SIZE的顺序表T,并实现插入、删除、遍历操作。 #include<stdio.h> #include<malloc.h> #define OK 1 #define ERROR 0 #define LIST_INIT_SIZE 100 #define LISTINCREMENT 10 #define ElemType int typedef struct { ElemType *elem;//存储的是原创 2021-03-13 10:38:26 · 561 阅读 · 0 评论 -
数据结构 非循环单链表(C语言)
二刷链表,纪念一下。 代码实现了以下的功能: 链表的创建。 链表的输出。 判断链表是否为空。 插入结点。 删除结点。 计算链表的长度。 排序。 #include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <stdbool.h> typedef struct Node { int date;//数据域 struct Node * next;//指针域 }NODE;原创 2020-12-06 16:25:39 · 300 阅读 · 0 评论