摘要: 可整合子数组:按由小到大排完序之后,后面的数比前一个数大1,如:[2,4,3,6,5]就是可整合数组。 1 // getLiL.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include <iostream> 6 #include <ha 阅读全文
posted @ 2016-08-17 23:36 lp3318 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 [1,-2,3,5,-2,6,-1]; 最大子数组为[3,5,-2,6] 和为12,并且能标记处最大子数组的范围 3 */ 4 5 6 #include "stdafx.h" 7 #include <iostream> 8 9 using namespace std; 10 11 vo 阅读全文
posted @ 2016-08-17 23:04 lp3318 阅读(158) 评论(0) 推荐(0) 编辑