2555: SubString Description 懒得写背景了,给你一个字符串init,要求你支持两个操作 (1):在当前字符串的后面插入一个字符串 (2):询问字符串s在当前字符串中出现了几次?(作为连续子串) 你必须在线支持这些操作。 懒得写背景了,给你一个字符串init,要求你支持两个操 ...
分类:
其他好文 时间:
2017-05-13 12:32:25
阅读次数:
235
题目: 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 co ...
分类:
编程语言 时间:
2017-05-13 11:22:12
阅读次数:
220
How many integers can you find Time Limit: 12000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5556 Accepted Su ...
分类:
其他好文 时间:
2017-05-13 11:21:07
阅读次数:
193
Description 农夫John发现他的奶牛产奶的质量一直在变动。经过细致的调查,他发现:虽然他不能预见明天产奶的质量,但连续的若干天的质量有很多重叠。我们称之为一个“模式”。 John的牛奶按质量可以被赋予一个0到1000000之间的数。并且John记录了N(1<=N<=20000)天的牛奶质 ...
分类:
其他好文 时间:
2017-05-12 18:48:48
阅读次数:
218
1.new project -> Scrolling Activity 2.Layout xml code activity_scrolling.xml content_scrolling.xml 3.Activity code ...
分类:
其他好文 时间:
2017-05-12 17:34:25
阅读次数:
224
You are to find all the two-word compound words in a dictionary. A two-word compound word is a word in the dictionary that is the concatenation of exa ...
分类:
其他好文 时间:
2017-05-12 17:24:53
阅读次数:
138
Mysql 查询缓存 查询缓存的作用就是当查询接收到一个和之前同样的查询,服务器将会从查询缓存种检索结果,而不是再次分析和执行上次的查询。这样就大大提高了性能,节省时间。 1.配置查询缓存 修改配置文件,修改[mysqld]下的query_cache_size和query_cache_type(如果 ...
分类:
数据库 时间:
2017-05-12 13:36:06
阅读次数:
207
*********************************配置主机名,通过主机名连接机器********************************* 比如说,已经有了三台主机 1,在linux上设置hostname,通过hostname来访问linux虚拟机 1.1. 修改hosts文 ...
分类:
系统相关 时间:
2017-05-12 13:29:29
阅读次数:
189
花时间研究了一些ffmpeg的nvenc,本来想我已经有了cuvid,然后又搞出来了nvenc,应该可以做个全套的英伟达的转码了,没想到ffmpeg官网下载的动态库没有cuvid,windows上编译cuvid又老是出错,忧伤。 1.nvenc编码 h264_nvenc是很容易调出来的,把编码器ff ...
分类:
其他好文 时间:
2017-05-12 01:37:01
阅读次数:
271
Struts2.5.10.1是目前为止最新的版本,struts2建议持续跟进,理由大家都懂。好了,下面步入正题。 基于struts2.5.10.1建立一个HelloWorld,基于注解的哈! 工具:eclipse neon3,jdk8,tomcat8,windows10(无关紧要) 需要的jar包: ...
分类:
其他好文 时间:
2017-05-12 00:25:07
阅读次数:
1133