摘要:
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t 阅读全文
posted @ 2016-09-15 13:49
amazingzoe
阅读(133)
评论(0)
推荐(0)
摘要:
Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is tha 阅读全文
posted @ 2016-09-15 03:43
amazingzoe
阅读(145)
评论(0)
推荐(0)
摘要:
Given an array of integers A and let n to be its length. Assume Bk to be an array obtained by rotating the array A k positions clock-wise, we define a 阅读全文
posted @ 2016-09-15 02:39
amazingzoe
阅读(386)
评论(0)
推荐(0)
浙公网安备 33010602011771号