- 博客(17)
- 资源 (10)
- 收藏
- 关注
原创 链表综合算法设计
#include #define MaxSize 100 typedef struct node { int no; //职工号 char name[10]; //姓名 int depno; //部门号 float salary; //工资号 int pno; //职工号指针 int pdepno;
2015-05-31 21:12:43 1717
原创 5.1数组存储二叉树实验
#include #define MAX 30 /****-----------------------------------------*****/ //函数名: CreateTree(int btree[], int list[], int n) //参数: (传入)int btree[] 二叉树 // (传入)int li
2015-05-27 10:07:38 770
原创 4.3稀疏矩阵的运算与实现
//iOS学习交流群:230644538 #include #include using namespace std; #define OK 1 #define MAX 10//用户自定义三元组的最大长度 //定义三元组表 typedef struct { int i, j;//非零元素的行下标和列下标 int v; //非零元素的值 }TriTupleNode; typedef s
2015-05-26 12:13:15 1026
原创 4.2矩阵排序实验
#include #define M 4 /****----------------------------------------------*****/ //函数名: BubblesSort(int list[], int n) //参数: (传入)int list[],待排序数组 // (传入)int n,数组长度 //功能: 使用冒泡排序对书序进行排序 /****
2015-05-25 13:34:57 743
原创 4.1矩阵运算的设计与实现
//4.1矩阵运算的设计与实现 #include #include #define M 4 /****----------------------------------------------****/ //函数名:MatrixAdd(int m1[M][M], int m2[M][M], int &result[M][M]) //参数: (传入)int m1[M][
2015-05-24 09:01:30 1622
原创 2.1.1线性表实现栈的建立,入栈,出栈等操作
#include #include #define STACK_INIT_SIZE 100 #define STACK_INCREMENT 10 #define OK 1 #define ERROR 0 #define OVERFLOW -1 typedef int status; typedef int SElemType; typedef struct { SElemType
2015-05-21 13:11:53 1580
原创 1.3单链表的设计与实现
实现单链表的基本操作,包括链表的建立与释放,查找,求长度,查找后继,插入,删除,输出等函数. //调试环境:DevC++ //库文件和预设定义 #include #include #define NULL 0 typedef int ElemType;//指定单链表中的数据类型 //单链表存储结构定义 typedef struct LNode { ElemType data;//数
2015-05-20 12:33:43 1242
原创 1.1顺序表基本操作的设计与实现
实现顺序表的基本操作,包括顺序表的建立,查找,求长度,查找前驱,插入,删除,输出等函数 #include #include #include using namespace std; #define OK 1 #define ERROR 0 #define OVERFLOW -1 #define List_INIT_SPACE 100 //存储空间初始分配量 #define Li
2015-05-20 12:28:11 1091
原创 UVA 401 Palindromes(回文词)
回文词 Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Practice UVA 401 Appoint description: acmparand (2013-07-07)Luke (2014-01-20) Syst
2015-05-15 20:35:20 834
原创 Saruman's Army(贪心)
Saruman's Army Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3069 Description Saruman the White must lead hi
2015-05-06 20:20:05 613
转载 子序列个数
子序列个数 Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice FZU 2129 Description 子序列的定义:对于一个序列a=a[1],a[2],......a[n]。则非空序列a'
2015-05-05 15:42:40 644
原创 Timebomb(水题)
Timebomb Time Limit:1000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Submit Status Practice CSU 1395 Description Input Outp
2015-05-03 20:18:07 479
原创 Planting Trees(水题)
Planting Trees Time Limit:1000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Submit Status Practice CSU 1390 Description Input
2015-05-03 20:15:10 720
原创 Yet Another Story of Rock-paper-scissors(水题)
Yet Another Story of Rock-paper-scissors Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Practice ZOJ 3610 Description Akihisa an
2015-05-03 09:03:47 551
转载 矩形嵌套
矩形嵌套 时间限制:3000 ms | 内存限制:65535 KB 难度:4 描述有n个矩形,每个矩形可以用a,b来描述,表示长和宽。矩形X(a,b)可以嵌套在矩形Y(c,d)中当且仅当a<c,b<d或者b<c,a<d(相当于旋转X90度)。例如(1,5)可以嵌套在(6,2)内,但不能嵌套在(3,4)中。你的任务是选出尽可能多的矩形排成一行,使得除最后一个外,
2015-05-01 09:50:04 484
Hacking With React
2016-04-17
Data Wrangling with Python
2016-04-17
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人