Iteration:public class Solution { public int maxSubArray(int[] nums) { int start = 0, end = nums.length-1; //return sumSubArray(nums,...
分类:
其他好文 时间:
2016-01-19 08:00:26
阅读次数:
141
Given a string arraywords, find the maximum value oflength(word[i]) * length(word[j])where the two words do not share common letters. You may assume t...
分类:
其他好文 时间:
2016-01-18 06:55:13
阅读次数:
166
最长公共子序列#include#include#include#includeusing namespace std;const int maxn=1000+10;int a[maxn],b[maxn];int dp[maxn][maxn];char s[maxn];int main(){ w...
分类:
其他好文 时间:
2016-01-17 21:38:01
阅读次数:
201
题目:Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.思路:固定一点,计算每一条经过这个店的直线斜率,用一个hashmap记录。记录下最多的斜率个数。对每...
分类:
其他好文 时间:
2016-01-17 07:33:47
阅读次数:
134
近期在做项目的过程中,使用oracle时碰到了如下两个异常:ORA-12519, TNS:no appropriate service handler found;ORA-00020:maximum number of processes (150) exceeded。下文我们就来看一下产生此问题的...
分类:
其他好文 时间:
2016-01-16 07:32:44
阅读次数:
252
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum...
分类:
其他好文 时间:
2016-01-15 15:54:50
阅读次数:
152
安装数据的时候报错:
查看操作系统参数设置:
[root@single1 ~]# vi /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.c...
分类:
数据库 时间:
2016-01-15 13:00:23
阅读次数:
190
Problem:Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You m...
分类:
其他好文 时间:
2016-01-14 22:17:03
阅读次数:
176
题目:Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from...
分类:
其他好文 时间:
2016-01-13 15:35:34
阅读次数:
137