摘要: Problem statement: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the arr 阅读全文
posted @ 2017-05-18 23:42 蓝色地中海 阅读(122) 评论(0) 推荐(0)
摘要: Problem statement: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides 阅读全文
posted @ 2017-05-18 05:17 蓝色地中海 阅读(184) 评论(0) 推荐(0)
摘要: Problem statement: Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for 阅读全文
posted @ 2017-05-18 01:51 蓝色地中海 阅读(133) 评论(0) 推荐(0)