one algorithm question# BrainTeaser - 大脑工作室
N*N
1 楼
【 以下文字转载自 JobHunting 讨论区 】
发信人: sdlx (sdlx), 信区: JobHunting
标 题: one algorithm question
发信站: BBS 未名空间站 (Fri May 4 22:59:34 2007)
You're given an array containing both positive and negative integers
and required to find the sub-array with the largest sum (O(N)
anyone can point me the right solution? I could not find it in my algorithm
book.
Thanks in advance !!!
发信人: sdlx (sdlx), 信区: JobHunting
标 题: one algorithm question
发信站: BBS 未名空间站 (Fri May 4 22:59:34 2007)
You're given an array containing both positive and negative integers
and required to find the sub-array with the largest sum (O(N)
anyone can point me the right solution? I could not find it in my algorithm
book.
Thanks in advance !!!