#includeusing namespace std;#define OK 1#define TRUE 1#define FALSE 0#define ERROR 0#define MAXSIZE 10typedef int status;//返回的状态值typedef int elemtype;...
分类:
其他好文 时间:
2015-03-11 10:41:04
阅读次数:
123
#includeusing namespace std;#define OK 1#define TRUE 1#define FALSE 0#define ERROR 0typedef int status;//返回的状态值//波斐数列,某项的值为它的前两项的和int fbi(int n){ if(n...
分类:
其他好文 时间:
2015-03-10 23:01:06
阅读次数:
239
#include//#include//#include using namespace std;#define OK 1#define TRUE 1#define FALSE 0#define ERROR 0typedef int status;//返回的状态值typedef int elemty...
分类:
其他好文 时间:
2015-03-10 22:43:35
阅读次数:
138
#include//#include//#include using namespace std;#define OK 1#define TRUE 1#define FALSE 0#define ERROR 0#define MAXSIZE 100//数组的最大大小typedef int statu...
分类:
其他好文 时间:
2015-03-10 21:19:07
阅读次数:
159
#include#include#include using namespace std;#define OK 1#define TRUE 1#define FALSE 0#define ERROR 0typedef int status;//返回的状态值typedef int elemtype;/...
分类:
其他好文 时间:
2015-03-10 16:53:26
阅读次数:
133
1 #include 2 3 #include 4 #include 5 6 using namespace std; 7 8 #define OK 1 9 #define TRUE 110 #define FALSE 011 #define ERROR 012 13 typedef in...
分类:
其他好文 时间:
2015-03-10 16:40:48
阅读次数:
164
假设要转载,须要注明出处:http://blog.csdn.net/xiazdong本文是http://blog.csdn.net/xiazdong/article/details/7304239的补充,当年看了《大话数据结构》总结的,可是如今看了《算法导论》,发现曾经对排序的理解还不深入,所以打算...
分类:
编程语言 时间:
2015-02-10 18:42:00
阅读次数:
253
本文是http://blog.csdn.net/xiazdong/article/details/7304239的补充,当年看了《大话数据结构》总结的,但是现在看了《算法导论》,发现以前对排序的理解还不深入,所以打算对各个排序的思想再整理一遍。本文首先介绍了基于比较模型的排序算法,即最坏复杂度都在Ω...
分类:
编程语言 时间:
2015-02-07 22:56:07
阅读次数:
314
先前初学了《大话数据结构》,然后在网上看到了LeetCode的测试,于是开始刷题,第一题就是排行榜首位Given an array of integers, find two numbers such that they add up to a specific target number.The....
分类:
其他好文 时间:
2015-02-05 20:00:13
阅读次数:
362
线性表定义: 零个或者多个数据元素的有限序列。元素之间是有顺序的,如果元素存在多个,则第一个元素无前驱,最后一个元素无后继。其他每个元素都有且只有一个前驱和后继。并且数据元素的类型要相同。 线性表的抽象数据类型: ADT 线性表(List) Data 线性表的数据对象集合为{a1,a2,...,an...
分类:
其他好文 时间:
2015-02-03 21:08:56
阅读次数:
264