Kadane's algorithm (maximum subarray)

Use max_so_far and max_ending

posted @ 2018-04-14 02:01  jjjjjj_jia  阅读(118)  评论(0编辑  收藏  举报