摘要: Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [... 阅读全文
posted @ 2014-06-05 23:40 陆草纯 阅读(445) 评论(0) 推荐(0) 编辑
摘要: Partition ListGiven a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should pres... 阅读全文
posted @ 2014-06-05 16:59 陆草纯 阅读(243) 评论(0) 推荐(0) 编辑