题目
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,...
分类:
其他好文 时间:
2014-06-19 12:08:20
阅读次数:
270
题目
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 11:46:47
阅读次数:
277
题目
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
...
分类:
其他好文 时间:
2014-06-19 10:05:39
阅读次数:
278
web应用的规划
有些人认为软件开发是从写代码开始的。但是事实上,产品的规划是软件开发过程的第一阶段。
产品规划,是实行从概念到编码的核心,是使项目顺利开工的关键。...
分类:
Web程序 时间:
2014-06-15 17:53:26
阅读次数:
233
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
此题和求二叉树的最短路径几乎一模一样。
public int...
分类:
其他好文 时间:
2014-06-15 16:36:40
阅读次数:
209
目标数据库:BOEE分区表:CB_PRODUCT分区字段:ID主要步骤:对于已经存在的表,我们可以采取以下步骤来对其创建分区表 1.添加文件组 2.设置默认的文件组 3.创建分区函数 4.创建分区架构并关联到分区函数 5.删除已经存在的聚集索引(我这里是主键,取消主键约束即删除了索引) ...
分类:
其他好文 时间:
2014-06-15 07:10:55
阅读次数:
232
Question:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, .....
分类:
其他好文 时间:
2014-06-14 20:59:07
阅读次数:
188
当某次事务处理对生产数据库中的数据作出更改时,Oracle数据库将在一个联机重做日志文件中记录此次更改。在DataGuard中可以配置写日志的这个过程,除了把日志记录到本地的联机日志文件和归档日志文件中,还可以通过网络,把日志信息发送到远程的从(standby)数据库服务器上。这个备用日志文件写入过程可以是实时、同步的,以实现零数据丢失(最大保护模式maximum protection);也可以是异步的,以减少对网络带宽的压力(最大性能模式maximum performance);或者是异步和同步可以自动切...
分类:
数据库 时间:
2014-06-14 17:57:25
阅读次数:
499
一、抽象工厂(Abstract
Factory)模式抽象工厂模式是全部形态的工厂模式中最为抽象和最具一般性的一种形态。为了方便引进抽象工厂模式,引进一个新概念:产品族(Product
Family)。所谓产品族,是指位于不同产品等级结构,功能相关联的产品组成的家族。如图:图中一共同拥有四个产品族,分...
分类:
其他好文 时间:
2014-06-13 16:48:06
阅读次数:
217
在ADO.NET数据访问层我们通常会将数据库连接字符串写成这样private static
readonly string _conStr =
"server=.;database=Product;uid=sa;pwd=sa";、这样的情况很多,比如单例模式可能是出于约定俗成吧,也可能是习惯了"海淘...
分类:
其他好文 时间:
2014-06-13 16:15:17
阅读次数:
268