摘要:
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [−2,1,−3,4,−1,2,... 阅读全文
posted @ 2014-11-27 04:37
LiBlog
阅读(153)
评论(0)
推荐(0)
摘要:
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ... 阅读全文
posted @ 2014-11-27 02:03
LiBlog
阅读(156)
评论(0)
推荐(0)
摘要:
Sort a linked list in O(n log n) time using constant space complexity.Analsys:We use Merge Sort.NOTE: We should practice other sort algorithm, linke Q... 阅读全文
posted @ 2014-11-27 01:03
LiBlog
阅读(177)
评论(0)
推荐(0)
摘要:
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 @ 2014-11-27 00:22
LiBlog
阅读(121)
评论(0)
推荐(0)

浙公网安备 33010602011771号