摘要: 题目描述:(链接)Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.解题思路: 1 class Sol... 阅读全文
posted @ 2015-11-03 16:27 skycore 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题目描述: (链接)GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [... 阅读全文
posted @ 2015-11-03 15:52 skycore 阅读(121) 评论(0) 推荐(0) 编辑