- 博客(3)
- 收藏
- 关注
原创 dp 入门 hdu 1231
Problem Description 给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{ Ni, Ni+1, ..., Nj },其中 1 例如给定序列{ -2, 11, -4, 13, -5, -2 },其最大连续子序列为{ 11, -4, 13 },最大和 为20。 在今年的数据结构考卷中,要求编写程序得到最大和,现在增加一个要求,即还
2017-04-29 13:39:00 218
原创 栈与队列的基本操作
关于栈与队列两种存储结构方式的基本操作队列的顺序结构采用了循环队列的方式。。。#include using namespace std; #include typedef int Elem; #define MaxStack 100 #define QueueSize 20 #define OVERFLOW -2 #define ERROR -1 #define SUCCESS 0 /******
2017-04-22 08:54:31 1225
原创 单链表的基本操作
对单链表的一些基本操作 #include #include #include using namespace std; #define OVERFLOW -2 #define ERROR -1 #define SUCCESS 0 typedef int Elem; typedef struct lnode{ Elem data; struct lnode *next;
2017-04-22 08:38:10 247
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人