摘要: Best Time to Buy and Sell Stock II 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 阅读全文
posted @ 2017-03-13 17:14 世人谓我恋长安 阅读(84) 评论(0) 推荐(0) 编辑
摘要: Largest Palindrome Product Find the largest palindrome made from the product of two n-digit numbers. Since the result could be very large, you should 阅读全文
posted @ 2017-03-13 16:29 世人谓我恋长安 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Search Insert Position Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if 阅读全文
posted @ 2017-03-13 10:47 世人谓我恋长安 阅读(84) 评论(0) 推荐(0) 编辑