1 class Solution { 2 public: 3 int maxSubArray(int A[], int n) { 4 int result = A[0], sum = A[0]; 5 for (int i = 1; i < n; i++) {...
分类:
其他 时间:
2015-03-21 06:21:04
收藏:
0 评论:
0 赞:
0 阅读:
337
【练习3.26】双端队列(deque)是由一些项的表组成的数据结构,对该数据结构可以进行下列操作:Push(X,D):将项X插入到双端队列D的前端。Pop(D):从双端队列D中删除前端项并返回。Inject(X,D):将项X插入到双端队列D的尾端。Eject(D):从双端队列D中删除尾端项并返回。编...
分类:
其他 时间:
2015-03-21 06:20:45
收藏:
0 评论:
0 赞:
0 阅读:
483
O(m + n):Note:return rec[1] not rec[0]. 1 class Solution { 2 public: 3 double findMedianSortedArrays(int A[], int m, int B[], int n) { 4 i...
分类:
其他 时间:
2015-03-21 06:20:34
收藏:
0 评论:
0 赞:
0 阅读:
373
Similar to maximum sum subarray, but need a gmin to record the global minimum to handle negative numbermultiplication. 1 class Solution { 2 public: 3 ...
分类:
其他 时间:
2015-03-21 06:19:54
收藏:
0 评论:
0 赞:
0 阅读:
321
This is the extension of Largest Rectangle in Histogram. We can just project 2D matrix to 1D array and compute it line by line. 1 class Solution { 2 p...
分类:
其他 时间:
2015-03-21 06:19:24
收藏:
0 评论:
0 赞:
0 阅读:
333
poj1159——回文,lcsPalindromeTime Limit:3000MSMemory Limit:65536KTotal Submissions:54621Accepted:18892DescriptionA palindrome is a symmetrical string, tha...
分类:
其他 时间:
2015-03-21 06:18:24
收藏:
0 评论:
0 赞:
0 阅读:
336
两个不同郁下的indexsync login hello,游客;请先登录hello,登入页面 跳到统一验证处验证sync login p3p共享sessionpassport完成跨域session<?phpsession_start();header('Content-Type:text/...
分类:
其他 时间:
2015-03-21 06:17:44
收藏:
0 评论:
0 赞:
0 阅读:
368
一、代理(Proxy)模式简介代理模式是结构型模式。代理模式给某一个对象提供一个代理对象,并由代理对象控制对原对象的引用。代理对象要继承于抽象主题,并控制原对象的引用二、简单例子抽象主题类package proxy;/* * 抽象主题 */public abstract class Subject ...
分类:
其他 时间:
2015-03-21 06:17:14
收藏:
0 评论:
0 赞:
0 阅读:
353
hduoj1159 dp,lcsCommon SubsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 25570Accepted Su...
分类:
其他 时间:
2015-03-21 06:17:04
收藏:
0 评论:
0 赞:
0 阅读:
394
分类分类的作用:在不改变原来类的基础上,可以给类增加一些方法。使用注意 : ① 分类只能增加方法,不可以增加成员变量 ② 分类的方法在实现中可以访问成员变量,不过成员变量必须手动实现。 ③ 分类可以从新实现原来类的方法,但是会覆盖原来类的方法,导致原来类的方法不可以使用。 ④ 方法调用的优先级:分类...
分类:
其他 时间:
2015-03-21 06:16:55
收藏:
0 评论:
0 赞:
0 阅读:
290
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他 时间:
2015-03-21 06:16:34
收藏:
0 评论:
0 赞:
0 阅读:
319
------- android培训、java培训、期待与您交流! ----------1.协议的定义 @protocol 协议名称 // 方法列表...... @end 2.如何遵守一份协议 1> 类遵守协议 @interface 类名 : 父类名 @end 2> 协议遵守协议 @protoc...
分类:
其他 时间:
2015-03-21 06:16:14
收藏:
0 评论:
0 赞:
0 阅读:
445
一、策略模式(Strategy)简介策略模式是行为模式.行为模式:规定了各个对象应该具备的职责以及对象间的通信模式,它很好的规范了对象间调用和数据传递方式策略模式适合于算法经常变化的情况算法的变化不会影响到使用算法的客户,算法可以独立于使用它的客户所变化二、简单例子普通客户,会员,VIP会员购买商品...
分类:
其他 时间:
2015-03-21 06:16:04
收藏:
0 评论:
0 赞:
0 阅读:
352
nmon在平时的工作中可能会多多少少接触到,从sourceforge上能够下载到nmon的包。可能是有着IBM的血统,这个工具对于AIX的支持力度要大得多。当然对于LINUX平台的支持已经很...
分类:
其他 时间:
2015-03-21 02:28:24
收藏:
0 评论:
0 赞:
0 阅读:
417
小花狸监控Redis和主机的状态监控主机状态的代码$GOPATH/src/probe/module/Host.gopackage moduleimport (????"io/ioutil"????"net"????"os/exec"????"str...
分类:
其他 时间:
2015-03-21 02:26:44
收藏:
0 评论:
0 赞:
0 阅读:
440
总是在内心深处说,不要成为技术的奴隶,但是越是这么提醒自己,越是发现自己已经是奴隶了,已经不能自拔,为什么呢,因为我已经习惯了这种生活,习惯了使用目前的这种思维...
分类:
其他 时间:
2015-03-21 02:26:19
收藏:
0 评论:
0 赞:
0 阅读:
268
HBase传递性依赖实在太多,还包含了很多Tomcat和Jetty的依赖容易出现问题,现在发一份记录一下
?
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-common</artifactId>
<versio ...
分类:
其他 时间:
2015-03-21 02:23:24
收藏:
0 评论:
0 赞:
0 阅读:
328
本文介绍两个EBS环境之间FSG报表的移植,包括:报表、列集、行集的移植。
前提:网络必须互通。不能互相访问的话,下面的内容就不要看了。
1 .??????建立数据库链接(DBLINK)
在总账超级用户下:设置->系统->数据库链接
????
数据库名称:起个有意义的名称,一般为source_to_target
连接字符串:
(DESCRIPTION=(ADDRESS= ...
分类:
其他 时间:
2015-03-21 02:18:49
收藏:
0 评论:
0 赞:
0 阅读:
406
百度网盘地址:
?
?
?
http://pan.baidu.com/s/1mgBUN0W
分享是一种乐趣,更多资源将持续发出
分类:
其他 时间:
2015-03-21 02:18:24
收藏:
0 评论:
0 赞:
0 阅读:
315
最近团队中有分析的场景,用到了JStorm来做数据的实时分析,于是花时间对于一些概念做了了解。
?
什么是Storm?
这个的话出来应该有几年时间了,阿 ...
分类:
其他 时间:
2015-03-21 02:17:09
收藏:
0 评论:
0 赞:
0 阅读:
373