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...
分类:
其他好文 时间:
2015-08-21 08:16:21
阅读次数:
205
leetcode - Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given ...
分类:
其他好文 时间:
2015-08-20 12:17:24
阅读次数:
130
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...
分类:
其他好文 时间:
2015-08-20 06:47:41
阅读次数:
116
最长上升公共子序列(Longest Increasing Common Subsequence,LICS)也是经典DP问题,是LCS与LIS的混合。Problem求数列 a[1..n], b[1..m]的LICS的长度, a[], b[]数组的元素均为正整数。Solution考虑如何定义DP状态,定...
分类:
其他好文 时间:
2015-08-20 01:04:36
阅读次数:
159
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...
分类:
其他好文 时间:
2015-08-19 23:26:54
阅读次数:
223
SELECT TABLE_NAME,COLUMN_NAME,CHARACTER_MAXIMUM_LENGTH,COLUMN_COMMENT FROM COLUMNS WHERE TABLE_SCHEMA='zhongchao' AND COLUMN_NAME LIKE 'Is%'SELECT * F...
分类:
数据库 时间:
2015-08-19 20:20:43
阅读次数:
139
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-08-19 13:14:00
阅读次数:
134
Max Points on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.对点遍历,找到对每个点共线的最大点数,所有点的最大值即是全局最大值...
分类:
其他好文 时间:
2015-08-18 18:21:54
阅读次数:
96
题目: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 complet...
分类:
其他好文 时间:
2015-08-18 11:39:48
阅读次数:
190
DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence....
分类:
其他好文 时间:
2015-08-18 11:31:13
阅读次数:
119