
数据结构
文章平均质量分 76
xfencui
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
哈希表(分离链接法)
hash.h #ifndef _Hash_H #define ElementType int struct HashTal; struct ListNode; typedef struct HashTal * HashTable; typedef struct ListNode * Position; typedef Position List; HashTable initializeTa原创 2013-08-09 12:48:11 · 1139 阅读 · 0 评论 -
栈的数组和链表实现
栈的数组实现: stack.h #ifndef _Stack_h #define ElementType int struct StackRecord; typedef struct StackRecord *Stack; int IsEmpty( Stack S ); int IsFull( Stack S ); Stack CreatStack( int MaxElements原创 2013-08-09 12:38:25 · 562 阅读 · 0 评论 -
循环队列
循环队列 Queue.h #ifndef _Queue_H #define ElementType int struct Queue; typedef struct Queue *QUEUE; void initQueue( QUEUE queue); int IsEmpty( QUEUE queue ); int IsFull( QUEUE queue ); void enQueue( E原创 2013-08-09 12:41:34 · 686 阅读 · 0 评论 -
单链表创建、排序、合并
单链表操作代码: list.h #ifndef _List_H #define ElementType int struct node; typedef struct node * PtrToNode; typedef PtrToNode List; typedef PtrToNode Position; List MakeEmpty( List L ); void CreatList原创 2013-08-09 12:45:10 · 686 阅读 · 0 评论 -
树的创建、前、中、后序递归遍历
本文使用C语言编写了二叉树的基本实现代码。代码如下: #include #include #include struct node { char data; struct node *lchild; struct node *rchild; }; typedef struct node Node; typedef struct node *NodePtr;原创 2013-08-09 11:04:40 · 601 阅读 · 0 评论