摘要: kmp算法 阅读全文
posted @ 2020-09-22 21:35 马猴烧酒孟优秀 阅读(300) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <ctype.h> #define ERROR 0 #define OK 1 typedef struct Stack { int *elements; int max_size, top_index; 阅读全文
posted @ 2019-12-27 12:23 马猴烧酒孟优秀 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 代码如下: #include <stdio.h>#include <stdlib.h> #define ERROR 0#define OK 1 typedef struct Queue{ int *data; int head,tail,length; }Queue; void init(Queue 阅读全文
posted @ 2019-12-26 22:09 马猴烧酒孟优秀 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <string.h> #define MAX_N 500 typedef struct Graph { int mat[MAX_N][MAX_N]; int n;}Graph; void init(Graph 阅读全文
posted @ 2019-12-09 10:46 马猴烧酒孟优秀 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h> typedef struct Node{ int data; struct Node *next; }Node, *LinkedList; LinkedList insert(LinkedList head, Node *n 阅读全文
posted @ 2019-11-10 10:59 马猴烧酒孟优秀 阅读(304) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h> #define ERROR 0#define OK 1 typedef struct Vector { int size,length; int *data; } Vector; void init(Vector *vect 阅读全文
posted @ 2019-11-09 15:23 马猴烧酒孟优秀 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 代码如下: #include <stdio.h>#include <stdlib.h> #define ERROR 0#define OK 1 typedef struct Vector { int size, length; int *data; } Vector; void init(Vecto 阅读全文
posted @ 2019-11-06 17:50 马猴烧酒孟优秀 阅读(297) 评论(0) 推荐(0) 编辑