摘要: 问题描述:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space ... 阅读全文
posted @ 2015-11-16 22:58 gatsbydhn 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 问题描述: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... 阅读全文
posted @ 2015-11-16 22:53 gatsbydhn 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given th... 阅读全文
posted @ 2015-11-16 22:46 gatsbydhn 阅读(221) 评论(0) 推荐(0) 编辑