
数据结构和算法
无悔_一叶扁舟
人生有一种追求不是功名利禄,而是一生无悔不为昨天而后悔,不为明天而迷茫把握好今天,谨慎的走好人生的每一步
展开
-
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 · 2216 阅读 · 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 · 460 阅读 · 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 · 354 阅读 · 0 评论