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...
分类:
其他好文 时间:
2014-10-16 15:45:42
阅读次数:
189
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...
分类:
其他好文 时间:
2014-10-16 15:26:02
阅读次数:
169
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine i...
分类:
其他好文 时间:
2014-10-16 14:55:02
阅读次数:
297
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...
分类:
其他好文 时间:
2014-10-16 06:33:22
阅读次数:
238
# Definition for a binary tree node# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right ...
分类:
其他好文 时间:
2014-10-16 03:27:21
阅读次数:
162
1.题目Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4]...
分类:
编程语言 时间:
2014-10-15 19:29:41
阅读次数:
228
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t...
分类:
其他好文 时间:
2014-10-15 12:52:20
阅读次数:
160
最大子序列积问题??
leetcode
Find the contiguous subarray within an array (containing at least one number)
线性时间算法...
分类:
其他好文 时间:
2014-10-13 23:44:27
阅读次数:
254
如实例: width:viewport 的宽度,可以指定为一个像素值,如:600,或者为特殊的值,如:device-width(设备的宽度)。height:viewport的高度。initial-scale:初始缩放比例,即当浏览器第一次加载页面时的缩放比例。maximum-scale:允许浏览者缩...
分类:
Web程序 时间:
2014-10-13 18:17:21
阅读次数:
275
Maximum sum
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 33918
Accepted: 10504
Description
Given a set of n integers: A={a1, a2,..., an}, we define a fu...
分类:
其他好文 时间:
2014-10-13 13:28:49
阅读次数:
177