Fork me on GitHub
摘要: 题目:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping... 阅读全文
posted @ 2015-09-02 15:24 __Neo 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onl... 阅读全文
posted @ 2015-09-02 14:45 __Neo 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目:GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4... 阅读全文
posted @ 2015-09-02 09:31 __Neo 阅读(143) 评论(0) 推荐(0) 编辑