摘要: Best Time to Buy and Sell Stock IISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the ... 阅读全文
posted @ 2015-01-25 17:52 imKirin 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Unique Binary Search TreesGivenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a to... 阅读全文
posted @ 2015-01-25 13:44 imKirin 阅读(124) 评论(0) 推荐(0) 编辑