摘要: Pascal's Triangle IIGiven an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your alg... 阅读全文
posted @ 2014-11-28 17:00 陆草纯 阅读(516) 评论(0) 推荐(0)
摘要: Intersection of Two Linked ListsWrite a program to find the node at which the intersection of two singly linked lists begins.For example, the followin... 阅读全文
posted @ 2014-11-28 16:47 陆草纯 阅读(5255) 评论(1) 推荐(0)
摘要: Best Time to Buy and Sell Stock IIISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the... 阅读全文
posted @ 2014-11-28 11:31 陆草纯 阅读(2595) 评论(0) 推荐(0)