problem:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one uniqu...
分类:
其他好文 时间:
2015-06-16 18:32:29
阅读次数:
113
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 complete at most k transactions.
Note:
You may no...
分类:
其他好文 时间:
2015-06-16 16:51:37
阅读次数:
107
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.强行解:inline bool valueSame(double a, double b) { re...
分类:
其他好文 时间:
2015-06-16 12:27:10
阅读次数:
86
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 complete at most two transactions.
Note:
You ma...
分类:
其他好文 时间:
2015-06-16 11:05:45
阅读次数:
116
New Document
function onLoad(){
resizeCanvas();
initPageObjects();
}
/**
* Resizes the main canvas to the maximum visible height.
*/
function resizeCanvas()
{...
分类:
Web程序 时间:
2015-06-15 14:38:26
阅读次数:
125
在使用phpmyadmin导入数据库的时候可能会碰到由于数据库文件太大而无法导入的问题!英文提示如下:File exceeds the maximum allowed size如果正在使用的主机可以自定义php.ini的话,就可以通过直接修改这个文件来解决,即通过通过编辑php.ini文件来重新设定...
分类:
数据库 时间:
2015-06-15 14:23:26
阅读次数:
139
Common Subsequence
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 14 Accepted Submission(s) : 7
Font: Times New Roman | Verdana | Georgia ...
分类:
其他好文 时间:
2015-06-15 09:19:26
阅读次数:
94
This is the classic LCS problem. Since it requires you to print one longest common subsequence, just use the O(m*n)-space version here.My accepted cod...
分类:
其他好文 时间:
2015-06-15 00:13:35
阅读次数:
112
This is the classic LCS problem. Since it only requires you to print the maximum length, the code can be optimized to use only O(m) space (seehere).My...
分类:
其他好文 时间:
2015-06-15 00:10:20
阅读次数:
157
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 le...
分类:
其他好文 时间:
2015-06-15 00:07:45
阅读次数:
142