尤克里里LK
尤克里里LK
全部文章
数据结构
C语言(59)
Java(3)
SSM项目(5)
力扣-刷题(2)
开发软件安装(1)
未归档(2)
经验贴(3)
面试题(1)
归档
标签
去牛客网
登录
/
注册
尤克里里LK的博客
现已保送至东北大学 人工智能方向硕士研究生。个人邮箱:liuke990205@163.com
全部文章
/ 数据结构
(共24篇)
链表:前插法建立单链表。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatlist()...
2020-05-16
0
678
链表:编写函数void reverse(LNode *h)。函数功能:利用原来的存储空间将链表逆置输出。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; void reverse(LNode...
2020-05-16
0
719
链表:编写一个函数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 *creatlist(i...
2020-05-16
0
581
链表:编写一个函数int max(LNode *h)。函数功能:返回链表中的最大值。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatlist(i...
2020-05-16
0
576
链表:编写一个函数int count(LNode *h)。函数功能:统计单链表中结点的个数。
#include <stdio.h> #include <stdlib.h> #define N 5 typedef struct list { int data; struct list *next; }LNode; LNode *creatlist(i...
2020-05-16
0
629
链表:编写一个函数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 *creatlist(i...
2020-05-16
0
636
链表:编写一个函数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 *creatlist(i...
2020-05-16
0
464
链表:编写一个函数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,int ...
2020-05-16
0
474
链表:编写一个函数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 *creatlist(i...
2020-05-16
0
437
二叉树:编写一个函数int Depth(BiTNode *T)。函数功能:计算二叉树的深度。
#include <stdio.h> #include <malloc.h> typedef struct BiTNode { int data; //关键字项 struct BiTNo...
2020-05-16
0
529
首页
上一页
1
2
3
下一页
末页