由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - find the subarray
相关主题
an interview question两道M软件大公司的最新面世算法题 (转载)
Interview question for Quant to share-3, please discuss and help each otherHow to send a structure containing a pointer over socket?
请教bit 操作std::map 为什么没有排序呢
面试题求解 (转载)通过日志分析yarn app实际内存用量
请教大家一个问题:book shelf problem(dynamic programming )Go’s path to becoming a Top 10 if not Top 5 language
一个哈希表问题julia有前途吗? (转载)
Check if the sum of two integers in an integer array eqauls to the given number [转载] CS Algorithm Interview question
面试题 -算法? 几道 google interview 的题目
相关话题的讨论汇总
话题: dp话题: subarray话题: find话题: problems话题: subproblem
进入Programming版参与讨论
1 (共1页)
k***i
发帖数: 2
1
You're given an array containing both positive and negative integers and
required to find the subarray with the largest sum
l***t
发帖数: 81
2
Dynamic programming.

【在 k***i 的大作中提到】
: You're given an array containing both positive and negative integers and
: required to find the subarray with the largest sum

P***t
发帖数: 1006
3
不用DP,O(N)就够了吧。

【在 l***t 的大作中提到】
: Dynamic programming.
c*****t
发帖数: 1879
4
It's DP with O(N) time.

【在 P***t 的大作中提到】
: 不用DP,O(N)就够了吧。
P***t
发帖数: 1006
5
I don't think the method is clearly a DP method. By definition, DP is to
divide the problem with sub problems. But the solution doesn't have much to
do with sub problems.

【在 c*****t 的大作中提到】
: It's DP with O(N) time.
N*********y
发帖数: 105
6
You are wrong. Think in the way of DP, don't just remember the definition of
DP.

to

【在 P***t 的大作中提到】
: I don't think the method is clearly a DP method. By definition, DP is to
: divide the problem with sub problems. But the solution doesn't have much to
: do with sub problems.

P***t
发帖数: 1006
7
Tell me how you define subproblem here. And how your subproblem will be used
more than once to solve bigger problems.

of

【在 N*********y 的大作中提到】
: You are wrong. Think in the way of DP, don't just remember the definition of
: DP.
:
: to

1 (共1页)
进入Programming版参与讨论
相关主题
几道 google interview 的题目请教大家一个问题:book shelf problem(dynamic programming )
贡献一下:本版上搜集的 Google 面试题 (转载)一个哈希表问题
what does this mean?Check if the sum of two integers in an integer array eqauls to the given number
Interview question面试题 -算法?
an interview question两道M软件大公司的最新面世算法题 (转载)
Interview question for Quant to share-3, please discuss and help each otherHow to send a structure containing a pointer over socket?
请教bit 操作std::map 为什么没有排序呢
面试题求解 (转载)通过日志分析yarn app实际内存用量
相关话题的讨论汇总
话题: dp话题: subarray话题: find话题: problems话题: subproblem