2015年6月8日

摘要: 题目: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-06-08 23:28 承续缘 阅读(167) 评论(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-06-08 23:14 承续缘 阅读(185) 评论(0) 推荐(0)
摘要: 题目:You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a concat... 阅读全文
posted @ 2015-06-08 22:59 承续缘 阅读(240) 评论(0) 推荐(0)
摘要: 题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n... 阅读全文
posted @ 2015-06-08 17:00 承续缘 阅读(198) 评论(0) 推荐(0)
摘要: 题目:Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S="ADOBECOD... 阅读全文
posted @ 2015-06-08 15:13 承续缘 阅读(227) 评论(0) 推荐(0)

导航