![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构和算法
无悔_一叶扁舟
人生有一种追求不是功名利禄,而是一生无悔不为昨天而后悔,不为明天而迷茫把握好今天,谨慎的走好人生的每一步
展开
-
A-B差集的计算
算法代码: /**************** 作者:一叶扁舟 时间:23:29 2016/9/2 问题:递增有序的链表A和B,不存在相等的数据,求出A-B的集合, 即A中存在B中不存在 ****************/ #include "stdio.h" #include "string.h" #include "stdlib.h" typedef struct LinkNode{原创 2016-09-11 00:07:53 · 2119 阅读 · 1 评论 -
数据结构和算法(C语言)
链表的基本操作: 代码: /** 作者:一叶扁舟 时间:23:43 2016/8/28 and 23:00 2016/8/31 作用:链表的基本操作和将链表逆置功能 **/ #include "stdio.h" #include "string.h" #include "stdlib.h" typedef struct LinkNode{ int data; LinkNode *nex原创 2016-09-01 00:15:55 · 416 阅读 · 1 评论 -
机试算法题(1)--排序算法
/*** 作者:一叶扁舟 作用:三种排序算法,冒泡,快速,插入排序 时间:21:39 2017/3/27 ***/ #include /**** 13 2 5 9 1 12 采用冒泡排序法:泡是向上冒的 */ void bubbleSort(int arrayNum[], int n){ int flag; int temp; for (int i = n-1; i > 0; i-原创 2017-04-20 20:51:20 · 329 阅读 · 0 评论