摘要: Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: I 阅读全文
posted @ 2019-12-17 12:42 xuan_abc 阅读(138) 评论(0) 推荐(0)
摘要: There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certai 阅读全文
posted @ 2019-12-17 12:14 xuan_abc 阅读(174) 评论(0) 推荐(0)
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim 阅读全文
posted @ 2019-12-17 11:55 xuan_abc 阅读(159) 评论(0) 推荐(0)