原始题目例如以下,意为寻找数组和最大的子串,返回这个最大和就可以。Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, ...
分类:
其他好文 时间:
2014-07-23 15:45:59
阅读次数:
246
1. 变量提升: 只对var声明的变量有效。 2. 标识符:数字,下划线,unicode字母,数字不能开头。 3. switch与case的值比较使用严格相等=== 4.do{}while(); 记住加分号。 5. 标签top: 使用break top; 跳到标签 6.数据类型number,stri...
分类:
编程语言 时间:
2014-07-23 15:05:56
阅读次数:
208
Memcached是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高动态、数据库驱动网站的速度。Memcached基于一个存储键/值对的hashmap。其守护进程(daemon)是用C写的,但是客户端可以用任..
分类:
其他好文 时间:
2014-07-23 13:46:57
阅读次数:
237
前面学习了反射知识和xml文件的dom4j解析方法,下面的一个小案例就是综合了两种知识的运用:
package cn.wwh.www.xml.do4j.exmple;
/**
*类的作用:
*
*
*@author 一叶扁舟
*@version 1.0
*@创建时间: 2014-7-23 上午10:43:00
*/
public class Student...
分类:
其他好文 时间:
2014-07-23 13:03:26
阅读次数:
161
rhel 6.4 增加光盘为yum repo版本LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4....
分类:
其他好文 时间:
2014-07-23 12:39:16
阅读次数:
224
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:
其他好文 时间:
2014-07-23 12:36:06
阅读次数:
209
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-07-23 12:03:26
阅读次数:
287
给一个数组,求区间[l,r]中第k大的数。今天被各种数据结构虐爆了,自己还是需要学习一下函数式线段树的,这个东西好像还挺常用。函数式线段树的思想是这样的,对于每个时间状态,我们都建立一颗线段树,查询两个状态在某个区间的差的话,我们只要找到两个状态分别对应的点相减即可。由于每次我使用线段树更新的时候,...
分类:
其他好文 时间:
2014-07-23 11:47:06
阅读次数:
241
DescriptionYou haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each ...
分类:
其他好文 时间:
2014-07-23 11:31:26
阅读次数:
269
#python?sqlite
#Author?:?Hongten
#MailTo?:?hongtenzone@foxmail.com
#QQ?????:?648719819
#Blog???:?http://www.cnblogs.com/hongten
#Create?:?2013-08-09
#Version:?1.0
#DB-API?2.0?...
分类:
数据库 时间:
2014-07-23 00:34:17
阅读次数:
409