题目Remove Duplicates from Sorted Array  Total Accepted: 16392 Total Submissions: 51515My Submissions Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not all…

2014年6月10日 0条评论 2点热度 阅读全文

Best Time to Buy and Sell Stock III   Total Accepted: 8979  Total Submissions: 40808 My Submissions Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maxim…

2014年5月28日 0条评论 0点热度 阅读全文

https://oj.leetcode.com/problems/triangle/ Triangle   Total Accepted: 10560  Total Submissions: 39313 My Submissions Given a triangle, find the minimum path sum from top to bottom.  Each step you may move to adjacent numbers on the row…

2014年5月25日 0条评论 5点热度 阅读全文