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
content属性值 : width:可视区域的宽度,值可为数字或关键词device-width height:同width intial-scale:页面首次被显示是可视区域的缩放级别,取值1.0则页面按实际尺寸显示,无任何缩放 maximum-scale=1.0, minimum-sca...
分类:
Web程序 时间:
2016-01-13 12:36:13
阅读次数:
175
Given an arraynumsand a target valuek, find the maximum length of a subarray that sums tok. If there isn't one, return 0 instead.Example 1:Givennums=[...
分类:
其他好文 时间:
2016-01-12 07:43:37
阅读次数:
219
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2016-01-12 01:07:01
阅读次数:
218
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2016-01-11 17:43:12
阅读次数:
142
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple...
分类:
其他好文 时间:
2016-01-10 19:48:27
阅读次数:
132
题目大意:有n1头公牛和n2头母牛,给出公母之间的m对配对关系,求最大匹配数。数据范围: 1 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 struct Hopcroft_Carp{ 9 ...
分类:
编程语言 时间:
2016-01-10 18:36:09
阅读次数:
707
题目大意:无向图,求最大流。算法讨论:Dinic可过。终于我的常数还是太大。以后要注意下了。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 typede...
分类:
其他好文 时间:
2016-01-10 18:31:08
阅读次数:
183