无奋斗不青春!
无奋斗不青春!
全部文章
数据结构
C语言(59)
Java(19)
Java面试专栏(5)
SSM项目(5)
剑指Offer(55)
单调栈(5)
开发软件安装(1)
未归档(2)
秒杀项目实践(2)
经验贴(3)
面试题(1)
题解(3)
归档
标签
去牛客网
登录
/
注册
无奋斗不青春!的博客
全部文章
/ 数据结构
(共24篇)
链表:前插法建立单链表。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatli...
2021-12-09
0
0
链表:编写函数void reverse(LNode *h)。函数功能:利用原来的存储空间将链表逆置输出。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; void reverse(L...
2021-12-09
0
0
链表:编写一个函数void fun(LNode *A,LNode *B,LNode *&C)。函数功能:将两个递增有序的链表合并为一个递增有序的链表。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatli...
2021-12-09
0
0
链表:编写一个函数int max(LNode *h)。函数功能:返回链表中的最大值。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatli...
2021-12-09
0
0
链表:编写一个函数int count(LNode *h)。函数功能:统计单链表中结点的个数。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatli...
2021-12-09
0
0
链表:编写一个函数int fun(LNode *h,int x)。函数功能:统计链表中数值为x的结点的个数。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatli...
2021-12-09
0
0
链表:编写一个函数void insert(LNode *h,int x)。函数功能:在有序的单链表中插入一个值为x的结点。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatli...
2021-12-09
0
0
链表:编写一个函数int fun(LNode *h,int x)。函数功能:查找链表是否存在一个值为x的结点,若存在则删除并返回1,否则返回0。
#include <stdio.h> #include <stdlib.h> #define N 8 typedef struct list { int data; struct list *next; }LNode; int fun(LNode *h,...
2021-12-09
0
0
链表:编写一个函数void delet(LNode *L, int n, int m)。函数功能:删除递增有序链表中值大于n且小于m的所有元素。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatli...
2021-12-09
0
0
二叉树:编写一个函数int Depth(BiTNode *T)。函数功能:计算二叉树的深度。
#include <stdio.h> #include <malloc.h> typedef struct BiTNode { int data; //关键字项 struct B...
2021-12-09
0
0
首页
上一页
1
2
3
下一页
末页