题目: 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 unique lo...
分类:
其他好文 时间:
2015-10-06 22:12:48
阅读次数:
479
题目: Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longe....
分类:
其他好文 时间:
2015-10-04 17:09:04
阅读次数:
165
Given a binary tree, find the maximum path sum.For this problem, a path is defined as any sequence of nodes from some starting node to any node in the...
分类:
其他好文 时间:
2015-10-04 12:18:38
阅读次数:
101
通信术语 最大传输单元(Maximum Transmission Unit,MTU)是指一种通信协议的某一层上面所能通过的最大数据包大小(以字节为单位)。最大传输单元这个参数通常与通信接口有关(网络接口卡、串口等)。原理说明因为协议数据单元的包头和包尾的长度是固定的,MTU越大,则一个协议数据单元的...
分类:
其他好文 时间:
2015-10-02 19:51:38
阅读次数:
272
[Problem]Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique l...
分类:
其他好文 时间:
2015-10-02 00:11:38
阅读次数:
194
【CompletionPort】1、CreateIoCompletionPort。此方法用于创建与绑定。 CompletionKey是自定义数据,用于区分FileHandle。 NumberOfConcurrentThreads[in] The maximum number of thre...
分类:
其他好文 时间:
2015-10-01 11:38:20
阅读次数:
130
题目:Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the...
分类:
其他好文 时间:
2015-09-30 00:51:34
阅读次数:
181
Given a sequence ofKintegers {N?1??,N?2??, ...,N?K??}. A continuous subsequence is defined to be {N?i??,N?i+1??, ...,N?j??} where1≤i≤j≤K. The Maximum ...
分类:
其他好文 时间:
2015-09-29 18:36:52
阅读次数:
114
Description: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 ma...
分类:
其他好文 时间:
2015-09-27 17:32:53
阅读次数:
159
方法:动态规划 《算法导论》P208最优子结构 +重叠子问题设xi,yi,为前i个数(前缀)设c[i,j]为xi,yi的LCS的长度c[i,j] = 0 (i ==0 || j == 0)c[i,j] = a[i-1,j-1] + 1 (i,j>0 &&xi=yi)c[i,j] = max(c[i,...
分类:
其他好文 时间:
2015-09-26 23:56:22
阅读次数:
213