摘要:
Problem:Analysis:Naive solution which compute every possible subarray sum and find the maximum need O(n^3), which is unbearable.A O(n) solutoin can be found based on the fact that. If the current sum is greater than or equal to 0, we keep add new element to it. If the current sum is less than 0, we 阅读全文
posted @ 2013-05-26 07:26
freeneng
阅读(155)
评论(0)
推荐(0)
浙公网安备 33010602011771号