![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Data Struct
lihenair
这个作者很懒,什么都没留下…
展开
-
线性表之顺序存储结构--C实现
http://blog.csdn.net/lincyang/article/details/8606682目录(?)[+]说在前面数据结构和算法是程序设计的灵魂。坦诚的说,我在这方面是弱的可以。虽然工作这么多年了,因为种种借口,这块知识一直是我的痛处。曾经在面试时大言不惭的说,这些知识在工作中很少用到,所以当年学习的东西早就还给学校了。其实不然,转载 2013-08-28 10:27:37 · 878 阅读 · 0 评论 -
生成全排列----离散数学及其应用伪代码实现
生成{1, 2, 3, 4, 5, 6, 7, 8, 9}的全排列。算法基于离散数学及其应用的伪代码,字典顺序#include int permutation(int* a, int len);int main(void){ int ret = 1; int i = 0; int A[9] = {1, 2, 3, 4, 5, 6, 7, 8,原创 2013-11-01 10:58:22 · 2730 阅读 · 0 评论 -
单链表倒序
需要将单链表倒序,并输出新的链表核心代码Node *next = root->next;root->next = new_root;new_root = root;root = next;#include typedef struct Node { char data; struct Node* next;} Node;void print_lis原创 2013-12-17 16:13:41 · 3159 阅读 · 0 评论 -
线性表顺序存储--C实现
参照数据结构线性表的抽象类型定义,实现了线性表的顺序存储代码如下#include #include #include #define OK 1#define ERROR -1#define TRUE 1#define FALSE 0#define LIST_INIT_SIZE 10#define LIST_INCR_SIZE 1原创 2013-12-17 19:48:59 · 775 阅读 · 0 评论