基本数据结构-顺序表-求出两个递增序列合并后的中位数 摘要:# 代码一 ```c int Find(Sqlist A,Sqlist B){ int i=0,j=0,k=0; Sqlist C; while(i…… 文章列表 2023年09月27日 0 点赞 0 评论 131 浏览 评分:0.0
基本数据结构-不带头节点的单链表-删除所有值为x的节点(递归算法) 摘要:# 代码 ```c void del_x(LNode *&L,int x){ LNode *p; if(L==NULL) return false; …… 文章列表 2023年09月28日 0 点赞 0 评论 144 浏览 评分:0.0
顺序表形式的队列.简洁易懂.C语言 摘要:#include #include typedef struct Qnode { int data[20]; //`做一个二十个空间的队列; int …… 文章列表 2023年09月28日 0 点赞 1 评论 83 浏览 评分:0.0
基本数据结构-带头节点的单链表-删除第一个值为x的节点 摘要:# 代码 ```c void Del_fistx(LNode *&L,int x){ LNode *p,*q; while(p->next!=NULL){ i…… 文章列表 2023年09月28日 0 点赞 0 评论 122 浏览 评分:0.0
基本数据结构-单链表-删除给定值在s和t之间的所有元素(不包含s,t) 摘要:# 代码 ```c void del_x(LNode *&L,int min,int max){ LNode *p=L; while(L!=NULL){ if…… 文章列表 2023年09月30日 0 点赞 0 评论 120 浏览 评分:0.0
基本数据结构-带头节点单链表-删除最小值点(高效算法) 摘要:# 代码 ```c void del_min(LNode *&L){ LNode *p=L->next; LNode *minp=L; while(p->next!=…… 文章列表 2023年09月30日 0 点赞 0 评论 208 浏览 评分:0.0
队列.链式。C语言 摘要:#include<stdio.h>#include<stdlib.h>typedef struct Node{ int data; struct Node *next;}Qnod…… 文章列表 2023年10月02日 0 点赞 0 评论 132 浏览 评分:0.0
基本数据结构-不带头结点单链表-删除最小值(高效算法) 摘要:# 代码 ```c void del_min(LNode *&L){ LNode *minp=L; LNode *p=L->next; while(p!=NULL){…… 文章列表 2023年10月02日 0 点赞 0 评论 150 浏览 评分:0.0
基本数据结构-带头节点单链表-将A分解成含奇数位置元素A和含偶数元素位置的B,且相对位置不变 摘要:# 代码 ```c void creat(LNode *&A){ LNode *B=new LNode; B->next=NULL; LNode *ra=A,*rb=…… 文章列表 2023年10月02日 0 点赞 0 评论 192 浏览 评分:0.0
基本数据结构-单链表-将{a1,b1,a2,b2,,,,,,an,bn}拆分成{a1,a2,,,,,an}和{bn,bn-1,,,,b2,b1} 摘要:# 代码 ```c LinkList creat(LNode *&A){ LNode *B=new LNode; B->next=NULL; LNode *ra=A,…… 文章列表 2023年10月03日 0 点赞 0 评论 145 浏览 评分:0.0